<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | 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() {
$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', 'placeholder' => $msg));
$this->addButtons(array(
array(
*
* @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();