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())
5.x misc.inc invoke_hook($hook = "example_hook_here", $params = array())

Invoke all module hooks for the supplied hook.

67 calls to invoke_hook()
admin.module in modules/admin/admin.module
The administrative configurations for FlightPath.
admin_apply_draft_changes_perform_batch_operation in modules/admin/admin.module
admin_duplicate_year_perform_batch_operation in modules/admin/admin.module
The is the batch operation to duplicate from $old_year to $new_year
AdvisingScreen.php in classes/AdvisingScreen.php
AdvisingScreen::build_footnotes in classes/AdvisingScreen.php
Constructs the HTML which will show footnotes for substitutions and transfer credits.

... See full list

File

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