Go to the source code of this file.
Functions | |
wfAddNamespace ( $id, $name, $constant=null) | |
Helper function for adding namespace for message groups. | |
Definition in file lc.php.
wfAddNamespace | ( | $id, | |
$name, | |||
$constant = null ) |
Helper function for adding namespace for message groups.
It defines constants for the namespace (and talk namespace) and sets up restrictions and some other configuration.
int | $id | Namespace number |
string | $name | Name of the namespace |
string | null | $constant | (optional) name of namespace constant, defaults to NS_ followed by upper case version of $name, e.g., NS_MEDIAWIKI |