Manual:Hooks/ShowRawCssJs

From MediaWiki.org

Jump to: navigation, search
ShowRawCssJs
Available from version 1.11.0
Customise the output of raw CSS and JavaScript in page views

*Define function:
function fnMyHook( $text, $title, $output ) { ... }

*Attach hook:
$wgHooks['ShowRawCssJs'][] = 'fnMyHook';
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