Manual:Hooks/ShowRawCssJs
From MediaWiki.org
ShowRawCssJs | |
---|---|
Available from version 1.11.0 Customise the output of raw CSS and JavaScript in page views |
|
Define function: |
public static function onShowRawCssJs( $text, $title, $output ) { ... } |
Attach hook: |
$wgHooks['ShowRawCssJs'][] = 'MyExtensionHooks::onShowRawCssJs'; |
Called from: | Article.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ShowRawCssJs extensions.
[edit] Details
- $text: Text being shown
- $title: Title of the custom script/stylesheet page
- $output: Current OutputPage object