wfInvoke documentation fix
authorDavid McCabe <david@users.mediawiki.org>
Wed, 17 Dec 2008 07:05:42 +0000 (07:05 +0000)
committerDavid McCabe <david@users.mediawiki.org>
Wed, 17 Dec 2008 07:05:42 +0000 (07:05 +0000)
includes/Hooks.php

index 15c7f9f..2fd9ab2 100644 (file)
@@ -95,6 +95,8 @@ function wfFormatInvocation($event, $hook, $args = array()) {
 
 /*
  * Invoke a function dynamically.
+ * $event is the name of the invocation; this is used if the hook specifies
+ * an object but no method name; 'on$event' is then invoked on the object.
  * $hook can be: a function, an object, an array of $function and $data,
  * an array of just a function, an array of object and method, or an
  * array of object, method, and data.