1 views_handler_relationship_node_term_data.inc views_handler_relationship_node_term_data::options_form(&$form, &$form_state)

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

Overrides views_handler_relationship::options_form

File

core/modules/taxonomy/views/views_handler_relationship_node_term_data.inc, line 34
Definition of views_handler_relationship_node_term_data.

Class

views_handler_relationship_node_term_data
Relationship handler to return the taxonomy terms of nodes.

Code

function options_form(&$form, &$form_state) {
  $vocabularies = taxonomy_vocabulary_load_multiple(FALSE);
  $options = array();
  foreach ($vocabularies as $voc) {
    $options[$voc->machine_name] = check_plain($voc->name);
  }

  $form['vocabularies'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Vocabularies'),
    '#options' => $options,
    '#default_value' => $this->options['vocabularies'],
    '#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.'),
  );
  parent::options_form($form, $form_state);
}