Template:MediaWikiHook/doc
From MediaWiki.org
Template:MediaWikiHook (talk, backlinks, edit)
[edit] Copy and paste template
| foo | |
|---|---|
| Available from version ??? |
|
*Define function: |
function fnMyHook(') { ... }
|
*Attach hook: |
$wgHooks['foo'][] = 'fnMyHook'; |
| Called from: | |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:foo extensions.
{{MediaWikiHook
|name =
|summary =
|version =
|args =
|source =
}}
[edit] Usage notes
- name
- The name of the hook. This is usually the same name as the sub-page.
- summary
- A short description of the hook's purpose.
- More detailed descriptions are desirable, and should be added to the main page content.
- If you update the short description, please also update the two tables on Manual:Hooks.
- version
- The version of MediaWiki this hook was first introduced in.
- args
- The arguments, as used at the top of the function.
- source
- A list of locations in the code that call this hook.

