You are here

function views_plugin_argument_validate_node::option_definition in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 modules/node/views_plugin_argument_validate_node.inc \views_plugin_argument_validate_node::option_definition()

Retrieve the options when this is a new access control plugin

Overrides views_plugin_argument_validate::option_definition

File

modules/node/views_plugin_argument_validate_node.inc, line 11
Contains the 'node' argument validator plugin.

Class

views_plugin_argument_validate_node
Validate whether an argument is an acceptable node.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['types'] = array(
    'default' => array(),
  );
  $options['access'] = array(
    'default' => FALSE,
  );
  $options['access_op'] = array(
    'default' => 'view',
  );
  $options['nid_type'] = array(
    'default' => 'nid',
  );
  return $options;
}