Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_usergroups()

Description

Returns a list of user groups. The standard user groups are translated using $lang. Custom user groups are i18n translated.
Puts anything starting with 'General Staff Users' - in the English default names - at the top (e.g. General Staff).

Parameters

ColumnTypeDefaultDescription
$usepermissions boolean false Use permissions (user access)
$find string '' Search string
$id_name_pair_array boolean false Return an array of ID->name instead of full records

Return

array Matching user group records

This article was last updated 20th April 2024 14:35 Europe/London time based on the source file dated 17th April 2024 16:25 Europe/London time.