&$result: Set this and return false to override the internal checks
$user: User the password is being validated for
+'LanguageGetNamespaces': Provide custom ordering for namespaces or
+remove namespaces. Do not use this hook to add namespaces.
+&$namespaces: Array of namespaces indexed by their numbers
+
'LanguageGetMagic': DEPRECATED, use $magicWords in a file listed in
$wgExtensionMessagesFiles instead.
Use this to define synonyms of magic words depending of the language
# The above mixing may leave namespaces out of canonical order.
# Re-order by namespace ID number...
ksort( $this->namespaceNames );
+
+ wfRunHooks( 'LanguageGetNamespaces', array( &$this->namespaceNames ) );
}
return $this->namespaceNames;
}
}
/**
- * Get the first fallback for a given language
+ * Get the first fallback for a given language.
*
* @param $code string
*