Projet

Général

Profil

Paste
Télécharger (756 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / includes / page-wizard.menu.inc @ c2ac6d1d

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains menu item registration for the page manager page wizards tool.
6
 */
7

    
8
function ctools_page_wizard_menu(&$items) {
9
  if (!module_exists('page_manager')) {
10
    return;
11
  }
12

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

    
19
  $items['admin/structure/pages/wizard'] = array(
20
    'title' => 'Wizards',
21
    'page callback' => 'page_manager_page_wizard_list',
22
    'page arguments' => array(4),
23
    'weight' => -5,
24
    'type' => MENU_LOCAL_TASK,
25
  ) + $base;
26

    
27
  $items['admin/structure/pages/wizard/%'] = array(
28
    'title' => 'Wizard',
29
    'page callback' => 'page_manager_page_wizard',
30
    'page arguments' => array(4),
31
  ) + $base;
32
}