1 views_plugin_argument_validate_user.inc | views_plugin_argument_validate_user::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/ user/ views/ views_plugin_argument_validate_user.inc, line 61 - Definition of views_plugin_argument_validate_user.
Class
- views_plugin_argument_validate_user
- Validate whether an argument is a valid user.
Code
function convert_options(&$options) {
if (!isset($options['type']) && isset($this->argument->options['validate_user_argument_type'])) {
$options['type'] = $this->argument->options['validate_user_argument_type'];
$options['restrict_roles'] = $this->argument->options['validate_user_restrict_roles'];
$options['roles'] = $this->argument->options['validate_user_roles'];
}
}