page-wizard.menu.inc 756 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. * Contains menu item registration for the page manager page wizards tool.
  5. */
  6. function ctools_page_wizard_menu(&$items) {
  7. if (!module_exists('page_manager')) {
  8. return;
  9. }
  10. $base = array(
  11. 'access arguments' => array('use page manager'),
  12. 'file' => 'includes/page-wizard.inc',
  13. 'type' => MENU_CALLBACK,
  14. );
  15. $items['admin/structure/pages/wizard'] = array(
  16. 'title' => 'Wizards',
  17. 'page callback' => 'page_manager_page_wizard_list',
  18. 'page arguments' => array(4),
  19. 'weight' => -5,
  20. 'type' => MENU_LOCAL_TASK,
  21. ) + $base;
  22. $items['admin/structure/pages/wizard/%'] = array(
  23. 'title' => 'Wizard',
  24. 'page callback' => 'page_manager_page_wizard',
  25. 'page arguments' => array(4),
  26. ) + $base;
  27. }