You are here

function views_handler_field_term_regcode_tid::options_form in Registration codes 7

Same name and namespace in other branches
  1. 6.2 includes/views_handler_field_term_regcode_tid.inc \views_handler_field_term_regcode_tid::options_form()
  2. 7.2 includes/views_handler_field_term_regcode_tid.inc \views_handler_field_term_regcode_tid::options_form()

Provide "link to term" option.

Overrides views_handler_field_prerender_list::options_form

File

includes/views_handler_field_term_regcode_tid.inc, line 30

Class

views_handler_field_term_regcode_tid
Class views_handler_field_term_regcode_tid.

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']),
  );
}