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.

30 calls to invoke_hook()
admin_apply_draft_changes_form_submit in modules/admin/admin.module
Handles the actual moving of draft courses into production.
advise_init_screen in modules/advise/advise.module
bootstrap.inc in ./bootstrap.inc
This file should be included by every public-facing page of FlightPath. It will include all the classes, as well as settings and function files, and modules.
cron.php in ./cron.php
The cron.php file for FlightPath, which should be run periodically.
fp_get_student_majors in includes/db.inc
Return back the codes or records for a student's degrees, based on what is in the student_degrees table (thanks to system.module), as well as what we get from hooks.

... See full list

File

includes/misc.inc, line 1603
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;
}