Function __global->get_module_zone
Definitions
sources/zones.php
- Find the zone a module is in.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$module_name | ID_TEXT | required parameter | N/A | N/A | The page name to find |
$type | ID_TEXT | modules | N/A | N/A | The type of the page we are looking for |
$dir2 | ?string | Null | N/A | N/A | The special subcategorisation of page we are looking for (e.g. 'EN' for a Comcode page) (null: none) |
$ftype | string | php | N/A | N/A | The file extension for the page type |
$error | boolean | True | N/A | N/A | Whether the software should bomb out if the page was not found |
$check_redirects | boolean | True | N/A | N/A | Whether to check against redirects |
$first_zone_to_check | ?ID_TEXT | Null | N/A | N/A | First zone to check (used for an optimisation) (null: current zone) |
Return
- The zone the page is in (null: not found)
- Type: ?ID_TEXT
- Set: N/A
- Range: N/A