Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 4th December 2024 08:35 Europe/London time based on the source file dated 3rd December 2024 07:55 Europe/London time.