<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
/**
* Function to build the form
*
- * @return None
+ * @return void
* @access public
*/
public function buildQuickForm() {
CRM_Utils_System::redirect($url);
return TRUE;
}
- else {
- $this->addButtons(array(
- array(
- 'type' => 'next',
- 'name' => ts('Delete'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
- }
}
else {
$this->_isTagSet = CRM_Utils_Request::retrieve('tagset', 'Positive', $this);
}
if (!$this->_isTagSet) {
- $this->add('select', 'parent_id', ts('Parent Tag'), $allTag);
+ $this->add('select', 'parent_id', ts('Parent Tag'), $allTag, FALSE, array('class' => 'crm-select2'));
}
$this->assign('isTagSet', $this->_isTagSet);
$isReserved = $this->add('checkbox', 'is_reserved', ts('Reserved?'));
- $usedFor = $this->add('select', 'used_for', ts('Used For'),
- CRM_Core_OptionGroup::values('tag_used_for')
- );
- $usedFor->setMultiple(TRUE);
+ $usedFor = $this->addSelect('used_for', array('multiple' => TRUE, 'option_url' => NULL));
if ($this->_id &&
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Tag', $this->_id, 'parent_id')
}
$this->assign('adminReservedTags', $adminReservedTags);
- parent::buildQuickForm();
}
+ parent::buildQuickForm();
}
/**
*
* @access public
*
- * @return None
+ * @return void
*/
public function postProcess() {
$params = $ids = array();