function drush_command_invoke_all_ref

8.0.x drush_command_invoke_all_ref($hook, &$reference_parameter)
6.x drush_command_invoke_all_ref($hook, &$reference_parameter)
7.x drush_command_invoke_all_ref($hook, &$reference_parameter)
3.x drush_command_invoke_all_ref($hook, &$reference_parameter)
4.x drush_command_invoke_all_ref($hook, &$reference_parameter)
5.x drush_command_invoke_all_ref($hook, &$reference_parameter)
master drush_command_invoke_all_ref($hook, &$reference_parameter)

A drush_command_invoke_all() that wants the first parameter to be passed by reference.

See also


4 calls to drush_command_invoke_all_ref()
drush_cache_clear_types in commands/core/
drush_pm_download in commands/pm/
Command callback. Download Drupal core or any project.
drush_print_help in includes/
Print the help for a single command to the screen.
drush_upgrade_project_map in commands/core/ lists projects that are now in core; it also has a list of projects that require special handling. Keep a record here too.
1 string reference to 'drush_command_invoke_all_ref'
drush_command_invoke_all in includes/
Invoke a hook in all available command files that implement it.


includes/, line 879
The drush command engine.


function drush_command_invoke_all_ref($hook, &$reference_parameter) {
  $args = func_get_args();
  // Insure that call_user_func_array can alter first parameter
  $args[0] = &$reference_parameter;
  $return = array();
  foreach (drush_command_implements($hook) as $module) {
    $function = $module . '_' . $hook;
    $result = call_user_func_array($function, $args);
    if (isset($result) && is_array($result)) {
      $return = array_merge_recursive($return, $result);
    else if (isset($result)) {
      $return[] = $result;
  return $return;