You are here

function views_plugin_argument_default_query::convert_options in Views Contextual Filter Query 7

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_default::convert_options

File

plugins/views/views_plugin_argument_default_query.inc, line 48
Contains the url query parameter default plugin.

Class

views_plugin_argument_default_query
Default argument plugin to use a query parameter from the URL.

Code

function convert_options(&$options) {
  if (!isset($options['parameter']) && isset($this->argument->options['default_argument_query'])) {
    $options['parameter'] = $this->argument->options['default_argument_query'];
  }
}