X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=docs%2Fhooks.txt;h=d175bcdf829f1f336dca255eab6ef02dd6ae466f;hb=f7ead5d3ca0e1ae673752f6c6118297bf47e1c88;hp=28065fc6d28ddf969621257c53b51f1a4159ca6f;hpb=f2d4db9d03a984d998db9044e63e548597511eb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 28065fc6d2..d175bcdf82 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -226,14 +226,9 @@ Hooks::run() returns true if the calling function should continue processing error occurred, or one of the hooks handled the action already). Checking the return value matters more for "before" hooks than for "complete" hooks. -Hooks::run() was added in MediaWiki 1.18, before that the global function -wfRunHooks must be used, which was deprecated in MediaWiki 1.25. - Note that hook parameters are passed in an array; this is a necessary -inconvenience to make it possible to pass reference values (that can be changed) -into the hook code. Also note that earlier versions of wfRunHooks took a -variable number of arguments; the array calling protocol came about after -MediaWiki 1.4rc1. +inconvenience to make it possible to pass reference values (which can be changed) +by the hook callback. ==Events and parameters==