You are here

admin_views.views.inc in Administration Views 7

Same filename and directory in other branches
  1. 6 admin_views.views.inc

Views plugin handlers.

File

admin_views.views.inc
View source
<?php

/**
 * @file
 * Views plugin handlers.
 */

/**
 * Implements hook_views_plugins().
 */
function admin_views_system_display_views_plugins() {
  $path = drupal_get_path('module', 'admin_views_system_display');
  $plugins = array(
    'module' => 'views',
    // This just tells our themes are elsewhere.
    'display' => array(
      'system' => array(
        'title' => t('System'),
        'help' => t('Display the view as replacement for an existing menu path.'),
        'path' => "{$path}/plugins",
        'handler' => 'views_plugin_display_system',
        'theme' => 'views_view',
        'uses hook menu' => TRUE,
        'use ajax' => TRUE,
        'use pager' => TRUE,
        'accept attachments' => TRUE,
        'admin' => t('System'),
      ),
    ),
    'access' => array(
      'menu' => array(
        'title' => t('(Deprecated) Menu system path'),
        'help' => t('This has been deprecated. <strong>DO NOT USE!</strong>'),
        'handler' => 'views_plugin_access_menu',
        'uses options' => FALSE,
        'path' => "{$path}/plugins",
      ),
    ),
  );
  return $plugins;
}