function views_handler_field_taxonomy::options_form in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/taxonomy/views_handler_field_taxonomy.inc \views_handler_field_taxonomy::options_form()
- 7.3 modules/taxonomy/views_handler_field_taxonomy.inc \views_handler_field_taxonomy::options_form()
Provide link to taxonomy option
Overrides views_handler_field::options_form
File
- modules/
taxonomy/ views_handler_field_taxonomy.inc, line 29
Class
- views_handler_field_taxonomy
- Field handler to provide simple renderer that allows linking to a taxonomy term.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_taxonomy'] = array(
'#title' => t('Link this field to its taxonomy term page'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_taxonomy']),
);
}