You are here

function advanced_forum_load_hooks in Advanced Forum 6.2

Same name and namespace in other branches
  1. 6 advf-plugins.inc \advanced_forum_load_hooks()
  2. 7.2 includes/plugins.inc \advanced_forum_load_hooks()

Load plugin info for all hooks; this is handled separately from plugins from files.

Parameters

$hook: The hook being invoked.

Return value

An array of info supplied by any hook implementations.

1 call to advanced_forum_load_hooks()
advanced_forum_get_plugins in includes/plugins.inc
Fetch a group of plugins by name.

File

includes/plugins.inc, line 83
Allows modules to contribute styles.

Code

function advanced_forum_load_hooks($hook) {
  $info = array();
  foreach (module_implements($hook) as $module) {
    $result = _advanced_forum_process_plugin($module, $module, drupal_get_path('module', $module), $hook);
    if (is_array($result)) {
      $info = array_merge($info, $result);
    }
  }
  return $info;
}