You are here

function views_plugin_field_taxonomy_term_machine_name::options_form in Taxonomy Machine Name 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

views/modules/taxonomy/views_plugin_field_taxonomy_term_machine_name.inc, line 21

Class

views_plugin_field_taxonomy_term_machine_name
Field handler to provide term machine_name token for using in url.

Code

function options_form(&$form, &$form_state) {
  $form['convert_underscores'] = array(
    '#title' => t('Convert underscores 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_underscores']),
  );
  parent::options_form($form, $form_state);
}