function views_handler_field_term_regcode_tid::options_form in Registration codes 6.2
Same name and namespace in other branches
- 7.2 includes/views_handler_field_term_regcode_tid.inc \views_handler_field_term_regcode_tid::options_form()
- 7 includes/views_handler_field_term_regcode_tid.inc \views_handler_field_term_regcode_tid::options_form()
Provide "link to term" option.
File
- includes/
views_handler_field_term_regcode_tid.inc, line 26
Class
- views_handler_field_term_regcode_tid
- Field handler for terms.
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 term page'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_taxonomy']),
);
}