CRM_Core_DAO::getAttribute('CRM_Core_DAO_OptionGroup', 'description')
);
- $this->addSelect('Data Type', CRM_Utils_Type::dataTypes(), TRUE);
+ $this->addSelect('data_type', array('options' => CRM_Utils_Type::dataTypes()), TRUE);
$element = $this->add('checkbox', 'is_active', ts('Enabled?'));
if ($this->_action & CRM_Core_Action::UPDATE) {
/**
* Get the DataType for a specified Option Group.
*
- * @param string $optionGroupname name of the option group
+ * @param string $optionGroupName name of the option group
*
- * @return string|bool
+ * @return string|null
*/
public static function getOptionGroupDataType($optionGroupName) {
$optionGroup = civicrm_api3('OptionGroup', 'get', array(
</tr>
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}</td></tr>
+ <tr class="crm-admin-optiongroup-form-block-data-type">
+ <td class="label">{$form.data_type.label}</td>
+ <td>{$form.data_type.html}</td>
+ </tr>
<tr class="crm-admin-optiongroup-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>