bootstrap_invoke_all

Versions
4.6
bootstrap_invoke_all($op)
4.7 – 7
bootstrap_invoke_all($hook)

Call all init or exit hooks without including all modules.

Parameters

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

Code

includes/bootstrap.inc, line 587

<?php
function bootstrap_invoke_all($hook) {
  foreach (module_list(TRUE, TRUE) as $module) {
    drupal_load('module', $module);
    module_invoke($module, $hook);
  }
}
?>
Login or register to post comments
 
 

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.