You are here

function views_handler_relationship_node_term_data::options_form in Views (for Drupal 7) 6.2

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

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

Overrides views_handler_relationship::options_form

File

modules/taxonomy/views_handler_relationship_node_term_data.inc, line 18
Views' relationship handlers.

Class

views_handler_relationship_node_term_data
@file Views' relationship handlers.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $vocabularies = taxonomy_get_vocabularies();
  $options = array();
  foreach ($vocabularies as $voc) {
    $options[$voc->vid] = check_plain($voc->name);
  }
  $form['vids'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Vocabularies'),
    '#options' => $options,
    '#default_value' => $this->options['vids'],
    '#description' => t('Choose which vocabularies you wish to relate. Remember that every term found will create a new record, so this relationship is best used on just one vocabulary that has only one term per node.'),
  );
}