Determines which modules are implementing a hook.
as of Drupal 8.0. Use Drupal::moduleHandler()->getImplementations($hook).
\Drupal\Core\Extension\ModuleHandler::getImplementations()
function module_implements($hook) {
return Drupal::moduleHandler()
->getImplementations($hook);
}