Elgg  Version master
email.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'switch',
8  '#label' => elgg_echo('config:email_html_part:label'),
9  '#help' => elgg_echo('config:email_html_part:help'),
10  'name' => 'email_html_part',
11  'value' => elgg_get_config('email_html_part'),
12 ]);
13 
15  '#type' => 'select',
16  '#label' => elgg_echo('config:email_html_part_images:label'),
17  '#help' => elgg_echo('config:email_html_part_images:help'),
18  'name' => 'email_html_part_images',
19  'value' => elgg_get_config('email_html_part_images'),
20  'options_values' => [
21  'no' => elgg_echo('option:no'),
22  'base64' => elgg_echo('config:email_html_part_images:base64'),
23  'attach' => elgg_echo('config:email_html_part_images:attach'),
24  ],
25 ]);
26 
28  '#type' => 'switch',
29  '#label' => elgg_echo('config:delayed_email:label'),
30  '#help' => elgg_echo('config:delayed_email:help'),
31  'name' => 'enable_delayed_email',
32  'value' => elgg_get_config('enable_delayed_email'),
33 ]);
34 
35 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: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
$body
Advanced site settings, email section.
Definition: email.php:6