function invoke_hook

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

42 calls to invoke_hook()
admin_apply_draft_changes_form_submit in modules/admin/admin.module
Handles the actual moving of draft courses into production.
AdvisingScreen::build_footnotes in classes/AdvisingScreen.php
Constructs the HTML which will show footnotes for substitutions and transfer credits.
AdvisingScreen::build_screen_elements in classes/AdvisingScreen.php
This function calls the other "build" functions to assemble the View or What If tabs in FlightPath.
AdvisingScreen::display_screen in classes/AdvisingScreen.php
This function generates the HTML to display the screen. Should be used in conjunction with output_to_browser()
AdvisingScreen::display_semester in classes/AdvisingScreen.php
Given a Semester object, this will generate the HTML to draw it out to the screen. We will take advantage of the render engine, so we can utilize hook_content_alter later on.

... See full list

File

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