Fix for bootstrap_invoke_all

  1. Index: includes/bootstrap.inc
  2. ===================================================================
  3. RCS file: /www/REPOSITORIES/core/drupal/includes/bootstrap.inc,v
  4. retrieving revision 1.206.2.4
  5. diff -u -r1.206.2.4 bootstrap.inc
  6. --- includes/bootstrap.inc      18 Aug 2008 18:56:30 -0000      1.206.2.4
  7. +++ includes/bootstrap.inc      29 Oct 2008 04:11:14 -0000
  8. @@ -541,8 +541,11 @@
  9.   *   The name of the bootstrap hook we wish to invoke.
  10.   */
  11.  function bootstrap_invoke_all($hook) {
  12. -  foreach (module_list(TRUE, TRUE) as $module) {
  13. +  $modules = module_list(TRUE, TRUE);
  14. +  foreach ($modules as $module) {
  15.      drupal_load('module', $module);
  16. +  }
  17. +  foreach ($modules as $module) {
  18.      module_invoke($module, $hook);
  19.    }
  20.  }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.