1 views_plugin_argument_validate_user.inc | views_plugin_argument_validate_user::option_definition() |
Retrieve the options when this is a new access control plugin
Overrides views_plugin_argument_validate::option_definition
File
- core/
modules/ user/ views/ views_plugin_argument_validate_user.inc, line 15 - Definition of views_plugin_argument_validate_user.
Class
- views_plugin_argument_validate_user
- Validate whether an argument is a valid user.
Code
function option_definition() {
$options = parent::option_definition();
$options['type'] = array('default' => 'uid');
$options['restrict_roles'] = array('default' => FALSE, 'bool' => TRUE);
$options['roles'] = array('default' => array());
return $options;
}