Commit 495ff014 authored by jhodgdon's avatar jhodgdon

Issue #1936166 by markpavlitski: Add documentation to module_invoke functions...

Issue #1936166 by markpavlitski: Add documentation to module_invoke functions about passing by value
parent 15d9e6d6
......@@ -2442,9 +2442,13 @@ function module_implements($hook) {
/**
* Invokes a hook in a particular module.
*
* All arguments are passed by value. Use drupal_alter() if you need to pass
* arguments by reference.
*
* @deprecated as of Drupal 8.0. Use
* drupal_container()->get('module_handler')->invoke($module, $hook, $args = array()).
*
* @see drupal_alter()
* @see \Drupal\Core\Extension\ModuleHandler::invoke()
*/
function module_invoke($module, $hook) {
......@@ -2457,9 +2461,13 @@ function module_invoke($module, $hook) {
/**
* Invokes a hook in all enabled modules that implement it.
*
* All arguments are passed by value. Use drupal_alter() if you need to pass
* arguments by reference.
*
* @deprecated as of Drupal 8.0. Use
* drupal_container()->get('module_handler')->invokeAll($hook).
*
* @see drupal_alter()
* @see \Drupal\Core\Extension\ModuleHandler::invokeAll()
*/
function module_invoke_all($hook) {
......
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