function drush_module_invoke_all

8.0.x environment_7.inc drush_module_invoke_all($hook)
8.0.x environment_6.inc drush_module_invoke_all($hook)
8.0.x environment.inc drush_module_invoke_all($hook)
7.x environment_7.inc drush_module_invoke_all($hook)
7.x environment_6.inc drush_module_invoke_all($hook)
7.x environment.inc drush_module_invoke_all($hook)
master environment_7.inc drush_module_invoke_all($hook)
master environment.inc drush_module_invoke_all($hook)

Invokes a hook in all enabled modules that implement it.

1 call to drush_module_invoke_all()
drush_core_requirements in commands/core/core.drush.inc
Command callback. Provides information from the 'Status Reports' admin page.

File

commands/core/drupal/environment.inc, line 248
Specific functions for a drupal 8+ environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal Drush is called from.

Code

function drush_module_invoke_all($hook) {
  $args = func_get_args();
  // Remove $hook from the arguments.
  array_shift($args);
  return \Drupal::moduleHandler()->invokeAll($hook, $args);
}