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 19th March 2024 02:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.