function invoke_hook

7.x misc.inc invoke_hook($hook = "example_hook_here", $params = array())
6.x misc.inc invoke_hook($hook = "example_hook_here", $params = array())
4.x misc.inc invoke_hook($hook = "example_hook_here", $params = array())
5.x misc.inc invoke_hook($hook = "example_hook_here", $params = array())

Invoke all module hooks for the supplied hook.

7 calls to invoke_hook()
advise_init_screen in modules/advise/advise.module
cron.php in ./cron.php
The cron.php file for FlightPath, which should be run periodically.
index.php in ./index.php
The primary entry point for FlightPath.
system_display_status_page in modules/system/system.module
This page displayes the results of each module's hook_status.
system_perform_run_cron in modules/system/system.module
Called from menu, will run hook_cron() for all modules.

... See full list

File

includes/misc.inc, line 1110
This file contains misc functions for FlightPath

Code

function invoke_hook($hook = "example_hook_here", $params = array()) {
  $rtn = array();
  $modules = modules_implement_hook($hook);
  foreach ($modules as $module) {
    $rtn [$module] = call_user_func_array($module . "_" . $hook, $params);
  }
  return $rtn;
}