Same name and namespace in other branches
  1. 4.6.x includes/module.inc \module_load_all()
  2. 4.7.x includes/module.inc \module_load_all()
  3. 5.x includes/module.inc \module_load_all()
  4. 7.x includes/module.inc \module_load_all()

Load all the modules that have been enabled in the system table.

1 call to module_load_all()
_drupal_bootstrap_full in includes/common.inc

File

includes/module.inc, line 11
API for loading and interacting with Drupal modules.

Code

function module_load_all() {
  foreach (module_list(TRUE, FALSE) as $module) {
    drupal_load('module', $module);
  }
}