1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* Delegated implementation of hook_menu().
|
5 |
|
|
*/
|
6 |
|
|
function ctools_export_ui_menu(&$items) {
|
7 |
|
|
ctools_include('export-ui');
|
8 |
|
|
|
9 |
|
|
// If a menu rebuild is triggered because of module enable/disable,
|
10 |
|
|
// this might be out of date. Reset the cache.
|
11 |
|
|
ctools_include('plugins');
|
12 |
|
|
ctools_get_plugins_reset();
|
13 |
|
|
|
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 |
|
|
} |