function crm_core_contact_handler_field_contact_revision::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_revision_link.inc \crm_core_contact_handler_field_contact_revision::options_form()
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_revision.inc \crm_core_contact_handler_field_contact_revision::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_revision.inc, line 26
Class
- crm_core_contact_handler_field_contact_revision
- 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);
// TODO: perhaps we need some link to reviosion edit page or so
$form['link_to_revision'] = array(
'#title' => t('Link this field to the revert the contact to previous version.'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_revision']),
);
}