From ad3e93699dd6661cac65a5fdd9308d43435c1213 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Fri, 11 Jul 2014 11:06:17 +0100 Subject: [PATCH] Issue #2300821 by joshi.rohit100: Remove module_invoke_all() as it is deprecated. --- core/includes/bootstrap.inc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index caa20b91c186..40245d2e1564 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1149,25 +1149,6 @@ function module_invoke($module, $hook) { return \Drupal::moduleHandler()->invoke($module, $hook, $args); } -/** - * Invokes a hook in all enabled modules that implement it. - * - * All arguments are passed by value. Use \Drupal::moduleHandler()->alter() if - * you need to pass arguments by reference. - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal::moduleHandler()->invokeAll($hook). - * - * @see \Drupal\Core\Extension\ModuleHandler::alter() - * @see \Drupal\Core\Extension\ModuleHandler::invokeAll() - */ -function module_invoke_all($hook) { - $args = func_get_args(); - // Remove $hook from the arguments. - unset($args[0]); - return \Drupal::moduleHandler()->invokeAll($hook, $args); -} - /** * Passes alterable variables to specific hook_TYPE_alter() implementations. * -- GitLab