Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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

new user or as defined in $usergroup_approval_mappings

Parameters

ColumnTypeDefaultDescription
$userpermission string "SYSTEM_ADMIN" Permission string
$usergroup int|null null Optional id of usergroup to find notification users for e.g. the parent group of

Return

array

This article was last updated 23rd July 2024 07:05 Europe/London time based on the source file dated 22nd July 2024 17:05 Europe/London time.