Extension:Translate/Hooks/TranslateBeforeAddModules

From mediawiki.org
Jump to navigation Jump to search
TranslateBeforeAddModules
Available from version ??? (Gerrit change 46932)
Provides an opportunity to load extra modules
Define function:
public static function onTranslateBeforeAddModules( &$modules ) { ... }
Attach hook:
$wgHooks['TranslateBeforeAddModules'][] = 'MyExtensionHooks::onTranslateBeforeAddModules';
Called from:File(s): Translate / utils/TuxMessageTable.php
Function(s): fullTable

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

Details[edit]

  • array &$modules: List of resource loader module names