Commit 49cdfedf authored by alexpott's avatar alexpott

Issue #2330181 by esod, ashutoshsngh, gaurav_varshney, ranjeet.paliwal,...

Issue #2330181 by esod, ashutoshsngh, gaurav_varshney, ranjeet.paliwal, joshi.rohit100, er.pushpinderrana, oriol_e9g: Remove module_invoke()
parent b926f5d8
......@@ -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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment