Extension:Translate/Hooks/TranslateGetSpecialTranslateOptions

From mediawiki.org
Jump to navigation Jump to search
TranslateGetSpecialTranslateOptions
Available from version ??? (Gerrit change 20709)
Used only for instrumentation on SpecialMute
Define function:
public static function onTranslateGetSpecialTranslateOptions( &$defaults, &$nondefaults ) { ... }
Attach hook:
$wgHooks['TranslateGetSpecialTranslateOptions'][] = 'MyExtensionHooks::onTranslateGetSpecialTranslateOptions';
Called from:File(s): Translate / specials/SpecialTranslate.php
Function(s): setup

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

Details[edit]

  • array &$defaults: Associative array of default values
  • array &$nondefaults: Associative array of nondefault (override) values