1 views_plugin_argument_validate_taxonomy_term.inc views_plugin_argument_validate_taxonomy_term::convert_options(&$options)

Convert options from the older style.

In Views 3, the method of storing default argument options has changed and each plugin now gets its own silo. This method can be used to move arguments from the old style to the new style. See views_plugin_argument_default_fixed for a good example of this method.

Overrides views_plugin_argument_validate::convert_options

File

core/modules/taxonomy/views/views_plugin_argument_validate_taxonomy_term.inc, line 76
Contains the 'taxonomy term' argument validator plugin.

Class

views_plugin_argument_validate_taxonomy_term
Validate whether an argument is an acceptable node.

Code

function convert_options(&$options) {
  if (!isset($options['vocabularies']) && !empty($this->argument->options['validate_argument_vocabulary'])) {
    $options['vocabularies'] = $this->argument->options['validate_argument_vocabulary'];
    $options['type'] = $this->argument->options['validate_argument_type'];
    $options['transform'] = isset($this->argument->options['validate_argument_transform']) ? $this->argument->options['validate_argument_transform'] : FALSE;
  }
}