Index: includes/module.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/module.inc,v retrieving revision 1.67 diff -u -F^f -r1.67 module.inc --- includes/module.inc 3 Apr 2005 08:03:18 -0000 1.67 +++ includes/module.inc 28 Jul 2005 01:19:48 -0000 @@ -8,10 +8,12 @@ /** * Initialize all modules. - * */ function module_init() { - module_load_all(); + // Load all the modules that have been enabled in the system table. + foreach (module_list(TRUE, FALSE) as $module) { + drupal_load('module', $module); + } module_invoke_all('init'); } @@ -71,24 +73,6 @@ function module_list($refresh = FALSE, $ } /** - * Load all the modules that have been enabled in the system table. - * - * @return - * TRUE if all modules were loaded successfully. - */ -function module_load_all() { - $list = module_list(TRUE, FALSE); - $status = TRUE; - - foreach ($list as $module) { - $status = (drupal_load('module', $module) && $status); - } - - return $status; -} - - -/** * Determine whether a given module exists. * * @param $module