Function __global->_render_menu
Definitions
sources/menus.php
- Render a menu to Tempcode.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$menu | array | required parameter | N/A | N/A | Menu details |
$source_member | ?MEMBER | required parameter | N/A | N/A | The member the menu is being built as (null: current member) |
$type | ID_TEXT | required parameter | N/A | N/A | The menu type (determines what templates get used) |
$as_admin | boolean | False | N/A | N/A | Whether to generate Comcode with admin privilege |
$apply_highlighting | boolean | True | N/A | N/A | Whether to apply current-screen highlighting |
Return
- The generated Tempcode of the menu
- Type: Tempcode
- Set: N/A
- Range: N/A