*
* @access public
*
- * @return void
+ * @return array
*/
function setDefaultValues() {
$defaults = $this->_values;
);
// add Campaign Parent Id
- $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(CRM_Utils_Array::value('parent_id', $this->_values),
- $this->_campaignId
- );
+ $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(CRM_Utils_Array::value('parent_id', $this->_values), $this->_campaignId);
if (!empty($campaigns)) {
- $this->addElement('select', 'parent_id', ts('Parent Id'),
- array(
- '' => ts('- select Parent -')) + $campaigns
+ $this->addElement('select', 'parent_id', ts('Parent ID'),
+ array('' => ts('- select Parent -')) + $campaigns,
+ array('class' => 'crm-select2')
);
}
-$groups = CRM_Core_PseudoConstant::nestedGroup();
+ $groups = CRM_Core_PseudoConstant::nestedGroup();
//get the campaign groups.
$this->add('select', 'includeGroups',
ts('Include Group(s)'),
* @param $files
* @param $errors
*
- * @return void
+ * @return bool|array
* @access public
* @see valid_date
*/