Elgg  Version 5.1
email.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'checkbox',
8  '#label' => elgg_echo('config:email_html_part:label'),
9  '#help' => elgg_echo('config:email_html_part:help'),
10  'name' => 'email_html_part',
11  'checked' => (bool) elgg_get_config('email_html_part'),
12  'switch' => true,
13  'value' => 1,
14  'default' => 0,
15 ]);
16 
18  '#type' => 'select',
19  '#label' => elgg_echo('config:email_html_part_images:label'),
20  '#help' => elgg_echo('config:email_html_part_images:help'),
21  'name' => 'email_html_part_images',
22  'value' => elgg_get_config('email_html_part_images'),
23  'options_values' => [
24  'no' => elgg_echo('option:no'),
25  'base64' => elgg_echo('config:email_html_part_images:base64'),
26  'attach' => elgg_echo('config:email_html_part_images:attach'),
27  ],
28 ]);
29 
31  '#type' => 'checkbox',
32  '#label' => elgg_echo('config:delayed_email:label'),
33  '#help' => elgg_echo('config:delayed_email:help'),
34  'name' => 'enable_delayed_email',
35  'checked' => (bool) elgg_get_config('enable_delayed_email'),
36  'switch' => true,
37  'value' => 1,
38  'default' => 0,
39 ]);
40 
41 echo elgg_view_module('info', elgg_echo('config:email'), $body);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:940
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1133
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
$body
Advanced site settings, email section.
Definition: email.php:6