You are here

function ctools_page_wizard_menu in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/page-wizard.menu.inc \ctools_page_wizard_menu()

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

File

includes/page-wizard.menu.inc, line 8
Contains menu item registration for the page manager page wizards tool.

Code

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/structure/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/structure/pages/wizard/%'] = array(
    'title' => 'Wizard',
    'page callback' => 'page_manager_page_wizard',
    'page arguments' => array(
      4,
    ),
  ) + $base;
}