X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FGroupContact.php;h=ff29a60134aa269c056bd9b0c9358d3887f7e062;hb=cda772aae0c600de9033d3360dfde772a2a78f64;hp=dd0a16e2b72c59ec66c7c98fcc0d65387335147f;hpb=c24be2289c776d9ee74980d0db74996804bd0eff;p=civicrm-core.git diff --git a/CRM/Contact/Form/GroupContact.php b/CRM/Contact/Form/GroupContact.php index dd0a16e2b7..ff29a60134 100644 --- a/CRM/Contact/Form/GroupContact.php +++ b/CRM/Contact/Form/GroupContact.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -60,7 +60,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { } /** - * Build the form object + * Build the form object. * * @return void */ @@ -101,7 +101,10 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { $msg = ts('Add to a group'); } - $this->add('select', 'group_id', '', $groupSelect, TRUE, array('class' => 'crm-select2 crm-action-menu action-icon-plus', 'placeholder' => $msg)); + $this->add('select', 'group_id', '', $groupSelect, TRUE, array( + 'class' => 'crm-select2 crm-action-menu action-icon-plus', + 'placeholder' => $msg, + )); $this->addButtons(array( array( @@ -120,8 +123,8 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { */ public function postProcess() { $contactID = array($this->_contactId); - $groupId = $this->controller->exportValue('GroupContact', 'group_id'); - $method = ($this->_context == 'user') ? 'Web' : 'Admin'; + $groupId = $this->controller->exportValue('GroupContact', 'group_id'); + $method = ($this->_context == 'user') ? 'Web' : 'Admin'; $session = CRM_Core_Session::singleton(); $userID = $session->get('userID'); @@ -136,4 +139,5 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { CRM_Core_Session::setStatus(ts("Contact has been added to '%1'.", array(1 => $groups[$groupId])), ts('Added to Group'), 'success'); } } + }