diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 27494e7..cabbb5f 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1152,25 +1152,6 @@ function module_implements($hook) { } /** - * Invokes a hook in a particular module. - * - * 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()->invoke($module, $hook, $args = array()). - * - * @see \Drupal\Core\Extension\ModuleHandler::alter() - * @see \Drupal\Core\Extension\ModuleHandler::invoke() - */ -function module_invoke($module, $hook) { - $args = func_get_args(); - // Remove $module and $hook from the arguments. - unset($args[0], $args[1]); - return \Drupal::moduleHandler()->invoke($module, $hook, $args); -} - -/** * Returns the test prefix if this is an internal request from SimpleTest. * * @param string $new_prefix