You are here

function views_handler_argument_term_node_tid::options_form in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/taxonomy/views_handler_argument_term_node_tid.inc \views_handler_argument_term_node_tid::options_form()
  2. 7.3 modules/taxonomy/views_handler_argument_term_node_tid.inc \views_handler_argument_term_node_tid::options_form()

Overrides views_handler_argument_many_to_one::options_form

File

modules/taxonomy/views_handler_argument_term_node_tid.inc, line 15

Class

views_handler_argument_term_node_tid
Allow taxonomy term ID(s) as argument.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['set_breadcrumb'] = array(
    '#type' => 'checkbox',
    '#title' => t("Set the breadcrumb for the term parents"),
    '#description' => t('If selected, the breadcrumb trail will include all parent terms, each one linking to this view. Note that this only works if just one term was received.'),
    '#default_value' => !empty($this->options['set_breadcrumb']),
  );
  $form['use_synonym_for_summary_links'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use term synonyms for summary links'),
    '#description' => t('If selected, summary views will use a synonym defined for each term when creating the URL to link to that term. Note that this only works reliably if terms have at most one synonym.'),
    '#default_value' => !empty($this->options['use_synonym_for_summary_links']),
  );
}