Manual:Hooks/SiteNoticeBefore
From MediaWiki.org
| SiteNoticeBefore | |
|---|---|
| Available from version 1.7.0 Used to modify the site notice before it has been created from $wgSiteNotice. Return false to suppress site notice. |
|
*Define function: |
function fnMyHook( &$siteNotice ) { ... }
|
*Attach hook: |
$wgHooks['SiteNoticeBefore'][] = 'MyExtensionHooks::someExample'; |
| Called from: | GlobalFunctions.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SiteNoticeBefore extensions.
[edit] Details
- $siteNotice: Empty string, ignored.
