Projet

Général

Profil

Paste
Télécharger (710 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / includes / export-ui.menu.inc @ e4c061ad

1
<?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
}