Elgg  Version 6.1
notifications.php
Go to the documentation of this file.
1 <?php
9 
10 // notify admins about add/remove of another admin
12  '#type' => 'switch',
13  '#label' => elgg_echo('admin:security:settings:notify_admins'),
14  '#help' => elgg_echo('admin:security:settings:notify_admins:help'),
15  'name' => 'security_notify_admins',
16  'value' => elgg_get_config('security_notify_admins'),
17 ]);
18 
19 // notify user about add/remove admin of his/her account
21  '#type' => 'switch',
22  '#label' => elgg_echo('admin:security:settings:notify_user_admin'),
23  '#help' => elgg_echo('admin:security:settings:notify_user_admin:help'),
24  'name' => 'security_notify_user_admin',
25  'value' => elgg_get_config('security_notify_user_admin'),
26 ]);
27 
28 // notify user about password change
30  '#type' => 'switch',
31  '#label' => elgg_echo('admin:security:settings:notify_user_password'),
32  '#help' => elgg_echo('admin:security:settings:notify_user_password:help'),
33  'name' => 'security_notify_user_password',
34  'value' => elgg_get_config('security_notify_user_password'),
35 ]);
36 
37 // notify user about (un)ban of his/her account
39  '#type' => 'switch',
40  '#label' => elgg_echo('admin:security:settings:notify_user_ban'),
41  '#help' => elgg_echo('admin:security:settings:notify_user_ban:help'),
42  'name' => 'security_notify_user_ban',
43  'value' => elgg_get_config('security_notify_user_ban'),
44 ]);
45 
46 // allow others to extend this section
47 $notifications .= elgg_view('admin/security/settings/extend/notification');
48 
49 echo elgg_view_module('info', elgg_echo('admin:security:settings:label:notifications'), $notifications);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:919
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$notifications
Security settings subview - notification related.