bootstrap_invoke_all

Definition

bootstrap_invoke_all($hook)
includes/bootstrap.inc, line 561

Description

Call all init or exit hooks without including all modules.

Parameters

$hook The name of the bootstrap hook we wish to invoke.

Code

<?php
function bootstrap_invoke_all($hook) {
  foreach (module_list(TRUE, TRUE) as $module) {
    drupal_load('module', $module);
    module_invoke($module, $hook);
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.