<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | 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$
*
*/
$session->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));
}
+ /**
+ * @return array
+ */
function setDefaultValues() {
$defaults = array();
return $defaults;
}
+ /**
+ * @param $defaults
+ */
function cbsDefaultValues(&$defaults) {
foreach ($this->_varNames as $groupName => $groupValues) {
array(' ', ' ', '<br/>')
);
break;
+
+ case 'select':
+ $this->addElement('select',
+ $fieldName,
+ $fieldValue['title'],
+ $fieldValue['option_values']
+ );
+ break;
+
+ case 'wysiwyg':
+ $this->addWysiwyg($fieldName, $fieldValue['title'], $fieldValue['attributes']);
+ break;
+
+ case 'entity_reference':
+ $this->addEntityRef($fieldName, $fieldValue['title'], CRM_Utils_Array::value('options', $fieldValue, array()));
}
}
case 'text':
case 'select':
case 'radio':
+ case 'entity_reference':
$this->_config->$settingName = CRM_Utils_Array::value($settingName, $this->_params);
break;