summaryrefslogtreecommitdiff
path: root/sites/all/modules/ctools/includes/export-ui.menu.inc
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2016-03-20 19:27:01 +0100
committerCtibor Brančík <ctibor@brancik.cz>2016-03-20 19:27:01 +0100
commit29a6913890a675ddf1a9239b4407f105e02dc95d (patch)
treedd9ba21b73e9e704952b49d5153616a9dfa9b98f /sites/all/modules/ctools/includes/export-ui.menu.inc
parent5ddacae6306ce071d4f7e4d438960d6d3a4c6bd8 (diff)
downloadbrdo-29a6913890a675ddf1a9239b4407f105e02dc95d.tar.gz
brdo-29a6913890a675ddf1a9239b4407f105e02dc95d.tar.bz2
Added drupal modules for site
Diffstat (limited to 'sites/all/modules/ctools/includes/export-ui.menu.inc')
-rw-r--r--sites/all/modules/ctools/includes/export-ui.menu.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/sites/all/modules/ctools/includes/export-ui.menu.inc b/sites/all/modules/ctools/includes/export-ui.menu.inc
new file mode 100644
index 000000000..d27bf157a
--- /dev/null
+++ b/sites/all/modules/ctools/includes/export-ui.menu.inc
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * Delegated implementation of hook_menu().
+ */
+function ctools_export_ui_menu(&$items) {
+ ctools_include('export-ui');
+
+ // If a menu rebuild is triggered because of module enable/disable,
+ // this might be out of date. Reset the cache.
+ ctools_include('plugins');
+ ctools_get_plugins_reset();
+
+ foreach (ctools_get_export_uis() as $plugin) {
+ // We also need to make sure that the module hasn't been disabled. During
+ // the disable process, the module's plugins still still appear.
+ if ($plugin['has menu'] && module_exists($plugin['module'])) {
+ $handler = ctools_export_ui_get_handler($plugin);
+ if ($handler) {
+ $handler->hook_menu($items);
+ }
+ }
+ }
+}