Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_notification_users()

Description

Returns an array of users (refs and emails) for use when sending email notifications (messages that in the past went
to $email_notify, which can be emulated by using $email_notify_usergroups)

Can be passed a specific user type or an array of permissions
Types supported:-
SYSTEM_ADMIN
RESOURCE_ACCESS
RESEARCH_ADMIN
USER_ADMIN
RESOURCE_ADMIN

or as defined in $usergroup_approval_mappings

Parameters

ColumnTypeDefaultDescription
$userpermission string "SYSTEM_ADMIN"
$usergroup int NULL Optional id of usergroup to find notification users for e.g. the parent group of new user

Return

array

This article was last updated 4th October 2022 18:35 Europe/London time based on the source file dated 28th September 2022 20:05 Europe/London time.