function drush_command_invoke_all

8.0.x command.inc drush_command_invoke_all()
6.x command.inc drush_command_invoke_all()
7.x command.inc drush_command_invoke_all()
3.x command.inc drush_command_invoke_all()
4.x command.inc drush_command_invoke_all()
5.x command.inc drush_command_invoke_all()
master command.inc drush_command_invoke_all()

Invoke a hook in all available command files that implement it.

Parameters

$hook: The name of the hook to invoke.

...: Arguments to pass to the hook.

Return value

An array of return values of the hook implementations. If commands return arrays from their implementations, those are merged into one array.

5 calls to drush_command_invoke_all()
drush_core_cli in commands/core/core.drush.inc
drush_pm_download in commands/pm/pm.drush.inc
Command callback. Download Drupal core or any project.
drush_set_error in includes/drush.inc
Set an error code for the error handling system.
drush_show_help in includes/drush.inc
Prints out help for a given command.
pm_update_complete in commands/pm/updatecode.pm.inc
Run the post-update hooks after updatecode is complete for one project.

File

includes/command.inc, line 405
The drush command engine.

Code

function drush_command_invoke_all() {
  $args = func_get_args();
  if (count($args) == 1) {
    $args[] = NULL;
  }
  $reference_value = $args[1];
  $args[1] = &$reference_value;

  return call_user_func_array('drush_command_invoke_all_ref', $args);
}