7 system.module | system_rebuild_module_data() |
8 system.module | system_rebuild_module_data() |
Rebuild, save, and return data about all currently available modules.
Return value
Array of all available modules and their data.
15 calls to system_rebuild_module_data()
2 string references to 'system_rebuild_module_data'
File
- modules/
system/ system.module, line 2430 - Configuration system that lets administrators modify the workings of the site.
Code
function system_rebuild_module_data() {
$modules_cache = &drupal_static(__FUNCTION__);
// Only rebuild once per request. $modules and $modules_cache cannot be
// combined into one variable, because the $modules_cache variable is reset by
// reference from system_list_reset() during the rebuild.
if (!isset($modules_cache)) {
$modules = _system_rebuild_module_data();
ksort($modules);
system_get_files_database($modules, 'module');
system_update_files_database($modules, 'module');
$modules = _module_build_dependencies($modules);
$modules_cache = $modules;
}
return $modules_cache;
}
Login or register to post comments
Comments
how this should be done in Drupal 6 ?
PHP Fatal error: Call to undefined function system_rebuild_module_data() in /var/www/pressflow6/sites/all/modules/lbdev/lbdev.module on line 15
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function system_rebuild_module_data() in
/var/www/pressflow6/sites/all/modules/lbdev/lbdev.module, line 15
module_rebuild_cache()
In drupal 6 it is http://api.drupal.org/api/drupal/includes%21module.inc/function/module_r...