export-ui.menu.inc 710 B

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