function modules_implement_hook

7.x misc.inc modules_implement_hook($hook = "example_hook_here")
6.x misc.inc modules_implement_hook($hook = "example_hook_here")
4.x misc.inc modules_implement_hook($hook = "example_hook_here")
5.x misc.inc modules_implement_hook($hook = "example_hook_here")

Return an array of enabled modules which implement the provided hook. Do not include the preceeding "_" on the hook name!

12 calls to modules_implement_hook()
blocks_get_available_blocks in modules/blocks/blocks.module
Return an array of blocks which we can assign and display, as defined by other modules' hook_blocks function.
blocks_get_sections_and_regions in modules/blocks/blocks.module
Look through our modules for hook_block_region and assemble them in an array.
content_get_types in modules/content/content.module
Return an array with all the possible content types known to FlightPath
content_load in modules/content/content.module
Load the content from the database and return an array, by calling hook_content_load.
fp_clear_cache in includes/misc.inc
Call all modules which implement hook_clear_cache

... See full list

File

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

Code

function modules_implement_hook($hook = "example_hook_here") {
  $rtn = array();

  foreach ($GLOBALS ["fp_system_settings"]["modules"] as $module => $value) {
    if (isset($value ["enabled"]) && $value ["enabled"] != "1") {
      // Module is not enabled.  Skip it.
      continue;
    }
    if (function_exists($module . '_' . $hook)) {
      $rtn [] = $module;
    }
  }

  return $rtn;
}