home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (admin_views.views.inc)

This example Drupal source code file (admin_views.views.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, function, menu, path, path/plugins, php, plugins, system, theme, title, true, use, views_plugin_display_system

The admin_views.views.inc Drupal example source code

<?php
// $Id: admin_views.views.inc,v 1.2 2010/03/11 01:14:17 sun Exp $

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

/**
 * Implements hook_views_plugins().
 */
function admin_views_views_plugins() {
  $path = drupal_get_path('module', 'admin_views');

  $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'),
      ),
    ),
  );

  return $plugins;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal admin_views.views.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.