diff options
Diffstat (limited to 'sites/all/modules/ctools/includes/page-wizard.menu.inc')
-rw-r--r-- | sites/all/modules/ctools/includes/page-wizard.menu.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sites/all/modules/ctools/includes/page-wizard.menu.inc b/sites/all/modules/ctools/includes/page-wizard.menu.inc new file mode 100644 index 000000000..7ed932ed1 --- /dev/null +++ b/sites/all/modules/ctools/includes/page-wizard.menu.inc @@ -0,0 +1,32 @@ +<?php + +/** + * @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/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; +} |