A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/LanguageGetNamespaces below:

Manual:Hooks/LanguageGetNamespaces - MediaWiki

LanguageGetNamespaces Available from version 1.19.0 (r95775, CodeReview archive)
Provide custom ordering for namespaces or remove namespaces.
Define function:
public static function onLanguageGetNamespaces( &$namespaces ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"LanguageGetNamespaces": "MediaWiki\\Extension\\MyExtension\\Hooks::onLanguageGetNamespaces"
	}
}
Called from: File(s): ../languages/Language.php Interface: LanguageGetNamespacesHook.php

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


Warning: Do not use this hook to add namespaces. Use CanonicalNamespaces for that.

Details[edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4