function crm_core_contact_handler_field_contact::options_form in CRM Core 7
Same name in this branch
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact.inc \crm_core_contact_handler_field_contact::options_form()
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_link.inc \crm_core_contact_handler_field_contact::options_form()
Provide the link to contact option.
Overrides views_handler_field::options_form
File
- modules/
crm_core_contact/ includes/ views/ handlers/ crm_core_contact_handler_field_contact.inc, line 26
Class
- crm_core_contact_handler_field_contact
- Field handler to provide simple renderer that allows linking to a contact.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_contact'] = array(
'#title' => t('Link this field to the contact\'s administrative view page.'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_contact']),
);
}