summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-02-07 11:09:46 (GMT)
committerAlex Pott2015-02-07 11:09:46 (GMT)
commit49cdfedf5f01706b8a3f1c626fcbf4bea807c605 (patch)
treed4eb12acbc247ed0fcfb343e79da4a8d8ed5a08b
parentb926f5d868c7000019f205bd9bae371c329571aa (diff)
Issue #2330181 by esod, ashutoshsngh, gaurav_varshney, ranjeet.paliwal, joshi.rohit100, er.pushpinderrana, oriol_e9g: Remove bootstrap.inc module_invoke()
-rw-r--r--core/includes/bootstrap.inc18
1 files changed, 0 insertions, 18 deletions
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 13f7107..1480c2b 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -840,24 +840,6 @@ function module_implements($hook) {
return \Drupal::moduleHandler()->getImplementations($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.