You are here

function views_plugin_display_system::option_definition in Administration Views 7

Same name and namespace in other branches
  1. 6 plugins/views_plugin_display_system.inc \views_plugin_display_system::option_definition()

Overrides views_plugin_display::option_definition().

Overrides views_plugin_display::option_definition

File

plugins/views_plugin_display_system.inc, line 50
System display plugin.

Class

views_plugin_display_system
Plugin to handle replacement of existing system paths.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['path'] = array(
    'default' => '',
  );

  // Override the access plugin to always enforce views_plugin_access_menu.
  // The UI widget for configuring access is additionally hidden.
  // @see options_summary()
  $options['defaults']['default']['access'] = FALSE;
  $options['access'] = array(
    // This isn't actually used, but we set it to a reasonable value, in case
    // this gets cloned to a display of a different type.
    'default' => array(
      'type' => 'perm',
      'perm' => 'use admin views system display ajax pages',
    ),
  );
  return $options;
}