|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onSiteNoticeBefore (&$siteNotice, $skin) | |
| Replace or disable the sitenotice. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SiteNoticeBefore" to register handlers implementing this interface.
Definition at line 14 of file SiteNoticeBeforeHook.php.
| MediaWiki\Skin\Hook\SiteNoticeBeforeHook::onSiteNoticeBefore | ( | & | $siteNotice, |
| $skin ) |
Replace or disable the sitenotice.
The default sitenotice considers the sitenotice, anonnotice, namespacenotice, and confirmemail-notice messages, as well as $wgSiteNotice feature.
To replace the sitenotice, set the $siteNotice arg to an HTML string and return false.
To disable the sitenotice, set the $siteNotice arg to the empty string and return false.
| string | &$siteNotice | HTML returned as the sitenotice |
| Skin | $skin |
Implemented in MediaWiki\HookContainer\HookRunner.