| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
*/
$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(
*/
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');
CRM_Core_Session::setStatus(ts("Contact has been added to '%1'.", array(1 => $groups[$groupId])), ts('Added to Group'), 'success');
}
}
+
}