< Manual:Hooks
AjaxAddScript
Available from version 1.9.1
Removed in version 1.24.0
Called in output page just before the initialization
Define function:
public static function onAjaxAddScript( &$out ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"AjaxAddScript": "MyExtensionHooks::onAjaxAddScript"
	}
}
Called from: File(s): OutputPage.php
Interface: AjaxAddScriptHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:AjaxAddScript extensions.

Details

  • &$out: OutputPage object

Notes

  • This hook is only called when ajax is enabled ($wgUseAjax = true)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.