function module_hook

Determines whether a module implements a hook.

Deprecated

as of Drupal 8.0. Use Drupal::moduleHandler()->implementsHook($module, $hook).

See also

\Drupal\Core\Extension\ModuleHandler::implementsHook()

7 calls to module_hook()
drupal_check_module in drupal/core/includes/install.inc
Checks a module's requirements.
field_help in drupal/core/modules/field/field.module
Implements hook_help().
field_system_info_alter in drupal/core/modules/field/field.module
Implements hook_system_info_alter().
node_hook in drupal/core/modules/node/node.module
Determines whether a node hook exists.
node_modules_disabled in drupal/core/modules/node/node.module
Implements hook_modules_disabled().

... See full list

File

drupal/core/includes/bootstrap.inc, line 2254
Functions that need to be loaded on every Drupal request.

Code

function module_hook($module, $hook) {
  return Drupal::moduleHandler()
    ->implementsHook($module, $hook);
}