X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FGroupContact.php;h=a6ad2c36c20fe894c80581b2b1bfccfffd41bc63;hb=941539e78a89e3f62386a0aa68d8677681b81ea1;hp=ba5f73ccf6eefa76b7118e058cdee3f66e926bdd;hpb=14473d4b14dbe29fe2e59eb947fcb05191be0c19;p=civicrm-core.git diff --git a/CRM/Contact/Form/GroupContact.php b/CRM/Contact/Form/GroupContact.php index ba5f73ccf6..a6ad2c36c2 100644 --- a/CRM/Contact/Form/GroupContact.php +++ b/CRM/Contact/Form/GroupContact.php @@ -1,9 +1,9 @@ _context = CRM_Utils_Request::retrieve('context', 'String', $this); } - /** - * This function sets the default values for the form. GroupContact that in edit/view mode - * the default values are retrieved from the database - * - * @access public - * - * @return None - */ - function setDefaultValues() { - $defaults = array(); - $params = array(); - - return $defaults; - } - - /** - * This function is used to add the rules for form. - * - * @return None - * @access public - */ - function addRules() {} - /** * Function to build the form * - * @return None + * @return void * @access public */ public function buildQuickForm() { @@ -125,7 +102,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { $msg = ts('Add to a group'); } - $this->add('select', 'group_id', $msg, $groupSelect, TRUE); + $this->add('select', 'group_id', '', $groupSelect, TRUE, array('class' => 'crm-select2 crm-action-menu action-icon-plus', 'placeholder' => $msg)); $this->addButtons(array( array( @@ -142,12 +119,11 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { * * @access public * - * @return None + * @return void */ public function postProcess() { $contactID = array($this->_contactId); $groupId = $this->controller->exportValue('GroupContact', 'group_id'); - $method = 'Admin'; $method = ($this->_context == 'user') ? 'Web' : 'Admin'; $session = CRM_Core_Session::singleton();