export-ui.menu.inc 728 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @file
  4. */
  5. /**
  6. * Delegated implementation of hook_menu().
  7. */
  8. function ctools_export_ui_menu(&$items) {
  9. ctools_include('export-ui');
  10. // If a menu rebuild is triggered because of module enable/disable,
  11. // this might be out of date. Reset the cache.
  12. ctools_include('plugins');
  13. ctools_get_plugins_reset();
  14. foreach (ctools_get_export_uis() as $plugin) {
  15. // We also need to make sure that the module hasn't been disabled. During
  16. // the disable process, the module's plugins still still appear.
  17. if ($plugin['has menu'] && module_exists($plugin['module'])) {
  18. $handler = ctools_export_ui_get_handler($plugin);
  19. if ($handler) {
  20. $handler->hook_menu($items);
  21. }
  22. }
  23. }
  24. }