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

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

This example Drupal source code file (admin_views.views_default.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

admin_views_views_default_views, as, filepath, files, foreach, function, if, include, isset, php, return, static, variable, views

The admin_views.views_default.inc Drupal example source code

// $Id: admin_views.views_default.inc,v 1.3 2010/03/11 02:20:14 sun Exp $

 * @file
 * Default views.

 * Implements hook_views_default_views().
function admin_views_views_default_views() {
  static $views;

  if (isset($views)) {
    return $views;

  $files = file_scan_directory(drupal_get_path('module', 'admin_views') . '/views_default', '/\.inc$/');
  foreach ($files as $filepath => $file) {
    include $filepath;
    if (isset($view)) {
      $views[$view->name] = $view;
  return $views;

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal admin_views.views_default.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.