Function __global->get_all_preserved_groups
Definitions
sources/cns_groups2.php
- Get a list of groups we should not delete.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $only_preserve_first_admin_groups | boolean | No | No | False | N/A | N/A | Whether to only preserve the first admin/moderator group |
Returns
- Preserved groups
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a list of groups we should not delete.
*
* @param boolean $only_preserve_first_admin_groups Whether to only preserve the first admin/moderator group
* @return array Preserved groups
*/
function get_all_preserved_groups(bool $only_preserve_first_admin_groups = false) : array
* Get a list of groups we should not delete.
*
* @param boolean $only_preserve_first_admin_groups Whether to only preserve the first admin/moderator group
* @return array Preserved groups
*/
function get_all_preserved_groups(bool $only_preserve_first_admin_groups = false) : array

