6.x module.inc module_load_all_includes($type, $name = NULL)
7.x module.inc module_load_all_includes($type, $name = NULL)

Load an include file for each of the modules that have been enabled in the system table.

File

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

Code

function module_load_all_includes($type, $name = NULL) {
  $modules = module_list();
  foreach ($modules as $module) {
    module_load_include($type, $module, $name);
  }
}