Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 */
6

    
7
/**
8
 * Delegated implementation of hook_menu().
9
 */
10
function ctools_export_ui_menu(&$items) {
11
  ctools_include('export-ui');
12

    
13
  // If a menu rebuild is triggered because of module enable/disable,
14
  // this might be out of date. Reset the cache.
15
  ctools_include('plugins');
16
  ctools_get_plugins_reset();
17

    
18
  foreach (ctools_get_export_uis() as $plugin) {
19
    // We also need to make sure that the module hasn't been disabled. During
20
    // the disable process, the module's plugins still still appear.
21
    if ($plugin['has menu'] && module_exists($plugin['module'])) {
22
      $handler = ctools_export_ui_get_handler($plugin);
23
      if ($handler) {
24
        $handler->hook_menu($items);
25
      }
26
    }
27
  }
28
}