function entity_translation_handler_field_label::options_form in Entity Translation 7
Add a 'link to entity' option.
Overrides views_handler_field::options_form
See also
views_handler_field::options_form()
File
- views/
entity_translation_handler_field_label.inc, line 35 - This file contains a label field handler for entity translation.
Class
- entity_translation_handler_field_label
- This handler shows the entity label for entities in the entity_translation table.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_entity'] = array(
'#title' => t('Link this field to it\'s entity'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_entity'],
);
}