Function __global->cns_get_group_name
Definitions
sources/cns_groups.php
- Get a usergroup name.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $group | GROUP | No | No | required parameter | N/A | N/A | The ID of the group |
| $hide_hidden | boolean | No | No | True | N/A | N/A | Whether to hide the name if it is a hidden group |
Returns
- The usergroup name
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a usergroup name.
*
* @param GROUP $group The ID of the group
* @param boolean $hide_hidden Whether to hide the name if it is a hidden group
* @return string The usergroup name
*/
function cns_get_group_name(int $group, bool $hide_hidden = true) : string
* Get a usergroup name.
*
* @param GROUP $group The ID of the group
* @param boolean $hide_hidden Whether to hide the name if it is a hidden group
* @return string The usergroup name
*/
function cns_get_group_name(int $group, bool $hide_hidden = true) : string

