module_load_all
- Versions
- 4.6 – 6
module_load_all()- 7
module_load_all($bootstrap = FALSE)
Load all the modules that have been enabled in the system table.
Return value
TRUE if all modules were loaded successfully.
Code
includes/module.inc, line 78
<?php
function module_load_all() {
$list = module_list(TRUE, FALSE);
$status = TRUE;
foreach ($list as $module) {
$status = (drupal_load('module', $module) && $status);
}
return $status;
}
?>Login or register to post comments 