function views_handler_field_taxonomy::options_form

Same name in other branches
  1. 6.x-3.x 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 46

Class

views_handler_field_taxonomy
Field handler to provide simple renderer that allows linking to a taxonomy term.

Code

public function options_form(&$form, &$form_state) {
    $form['link_to_taxonomy'] = array(
        '#title' => t('Link this field to its taxonomy term page'),
        '#description' => t("Enable to override this field's links."),
        '#type' => 'checkbox',
        '#default_value' => !empty($this->options['link_to_taxonomy']),
    );
    $form['convert_spaces'] = array(
        '#title' => t('Convert spaces in term names to hyphens'),
        '#description' => t('This allows links to work with Views taxonomy term arguments.'),
        '#type' => 'checkbox',
        '#default_value' => !empty($this->options['convert_spaces']),
    );
    parent::options_form($form, $form_state);
}