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

Drupal example source code file (page-wizard.menu.inc)

This example Drupal source code file (page-wizard.menu.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

access, arguments, array, base, callback, file, function, page, page_manager_page_wizard_list, php, title, type, wizards

The page-wizard.menu.inc Drupal example source code

<?php
// $Id: page-wizard.menu.inc,v 1.1.2.2 2010/08/30 22:32:41 merlinofchaos Exp $

/**
 * @file
 * Contains menu item registration for the page manager page wizards tool.
 */

function ctools_page_wizard_menu(&$items) {
  if (!module_exists('page_manager')) {
    return;
  }

  $base = array(
    'access arguments' => array('use page manager'),
    'file' => 'includes/page-wizard.inc',
    'type' => MENU_CALLBACK,
  );

  $items['admin/build/pages/wizard'] = array(
    'title' => 'Wizards',
    'page callback' => 'page_manager_page_wizard_list',
    'page arguments' => array(4),
    'weight' => -5,
    'type' => MENU_LOCAL_TASK,
  ) + $base;

  $items['admin/build/pages/wizard/%'] = array(
    'title' => 'Wizard',
    'page callback' => 'page_manager_page_wizard',
    'page arguments' => array(4),
  ) + $base;
}

Other Drupal examples (source code examples)

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