You are here

function views_plugin_argument_default_variable::convert_options in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_views/includes/views_plugin_argument_default_variable.inc \views_plugin_argument_default_variable::convert_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_default::convert_options

File

variable_views/includes/views_plugin_argument_default_variable.inc, line 28
Contains the php code argument default plugin.

Class

views_plugin_argument_default_variable
Default argument plugin to provide a variable value.

Code

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