Manual:Hooks/ScribuntoExternalLibraries

From MediaWiki.org
Jump to: navigation, search
ScribuntoExternalLibraries
Available from version ??? (Gerrit change 47548)
Allow extensions to add libraries
Define function:
public static function onScribuntoExternalLibraries( $engine, &$libs ) { ... }
Attach hook:
$wgHooks['ScribuntoExternalLibraries'][] = 'MyExtensionHooks::onScribuntoExternalLibraries';
Called from: File(s): CommonTest.php
Function(s): setUp

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

Details[edit]

  • $engine String - script engine to use (e.g Lua)
  • &$libs Array - Libraries to load