function crm_core_contact_handler_field_contact_type::options_form in CRM Core 7
Options form builder.
Overrides views_handler_field::options_form
File
- modules/
crm_core_contact/ includes/ views/ handlers/ crm_core_contact_handler_field_contact_type.inc, line 26 - Field handler to provide simple renderer that allows linking to a contact.
Class
- crm_core_contact_handler_field_contact_type
- Handler class.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Provide the link to contact type page.
$form['link_to_contact_type'] = array(
'#title' => t('Link this field to the contact type administrative page.'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_contact_type']),
);
// Display contact type as machine readable name.
$form['machine_name'] = array(
'#title' => t('Display contact type as machine readable name?'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['machine_name']),
);
}