1 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::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/views/plugins/views_plugin_argument_validate_php.inc, line 41
Contains the php code argument validator plugin.

Class

views_plugin_argument_validate_php
Provide PHP code to validate whether or not an argument is ok.

Code

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