Manual:Hooks/LocalisationCacheRecache

From MediaWiki.org
Jump to: navigation, search
LocalisationCacheRecache
Available from version 1.16.0
Called when loading the localisation data into cache

*Define function:
function fnMyHook( $cache, $code, &$alldata ) { ... }

*Attach hook:
$wgHooks['LocalisationCacheRecache'][] = 'MyExtensionHooks::someExample';
Called from: LocalisationCache.php

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


[edit] Details

  • $cache: The LocalisationCache object
  • $code: language code
  • &$alldata: The localisation data from core and extensions
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox