From 1a33801db5ae5b7facd37b0016a838705ceb51e6 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Mon, 1 Feb 2016 17:09:16 +0900 Subject: [PATCH] Issue #376391 by mimran, snehi: Document that module_invoke_all / ModuleHandlerInterface::invokeAll reindexes arrays --- core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php index d614fdbcdcd..3d61d2e618f 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php @@ -237,7 +237,9 @@ interface ModuleHandlerInterface { * * @return array * An array of return values of the hook implementations. If modules return - * arrays from their implementations, those are merged into one array. + * arrays from their implementations, those are merged into one array + * recursively. Note: integer keys in arrays will be lost, as the merge is + * done using array_merge_recursive(). */ public function invokeAll($hook, array $args = array());