function efq_views_handler_field_entity_label::options_form in EntityFieldQuery Views Backend 7
Provide link to entity option
Overrides views_handler_field::options_form
File
- handlers/
efq_views_handler_field_entity_label.inc, line 23
Class
- efq_views_handler_field_entity_label
- Field handler for entity labels.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_entity'] = array(
'#title' => t('Link this field to its entity'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_entity']),
);
}