Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -612,6 +612,11 @@ |
613 | 613 | &$siteNotice: HTML sitenotice |
614 | 614 | Alter the contents of $siteNotice to add to/alter the sitenotice/anonnotice. |
615 | 615 | |
| 616 | +'SkinAfterBottomScripts': At the end of Skin::bottomScripts() |
| 617 | +$skin: Skin object |
| 618 | +&$text: bottomScripts Text |
| 619 | +Append to $text to add additional text/scripts after the stock bottom scripts. |
| 620 | + |
616 | 621 | 'SkinTemplateOutputPageBeforeExec': Before SkinTemplate::outputPage() starts page output |
617 | 622 | &$sktemplate: SkinTemplate object |
618 | 623 | &$tpl: Template engine object |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -708,7 +708,9 @@ |
709 | 709 | */ |
710 | 710 | function bottomScripts() { |
711 | 711 | global $wgJsMimeType; |
712 | | - return "\n\t\t<script type=\"$wgJsMimeType\">if (window.runOnloadHook) runOnloadHook();</script>\n"; |
| 712 | + $bottomScriptText = "\n\t\t<script type=\"$wgJsMimeType\">if (window.runOnloadHook) runOnloadHook();</script>\n"; |
| 713 | + wfRunHooks( 'SkinAfterBottomScripts', array( $this, &$bottomScriptText ) ); |
| 714 | + return $bottomScriptText; |
713 | 715 | } |
714 | 716 | |
715 | 717 | /** @return string Retrievied from HTML text */ |