Open main menu

Extension:Scribunto/ScribuntoExternalLibraries

< Extension:Scribunto(Redirected from Manual:Hooks/ScribuntoExternalLibraries)
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.

DetailsEdit

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