Elgg  Version 4.3
other.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'checkbox',
8  '#label' => elgg_echo('config:remove_branding:label'),
9  '#help' => elgg_echo('config:remove_branding:help'),
10  'name' => 'remove_branding',
11  'checked' => (bool) elgg_get_config('remove_branding'),
12  'switch' => true,
13 ]);
14 
16  '#type' => 'checkbox',
17  '#label' => elgg_echo('config:disable_rss:label'),
18  '#help' => elgg_echo('config:disable_rss:help'),
19  'name' => 'disable_rss',
20  'checked' => (bool) elgg_get_config('disable_rss'),
21  'switch' => true,
22 ]);
23 
25  '#type' => 'number',
26  '#label' => elgg_echo('config:friendly_time_number_of_days:label'),
27  '#help' => elgg_echo('config:friendly_time_number_of_days:help'),
28  'name' => 'friendly_time_number_of_days',
29  'value' => (int) elgg_get_config('friendly_time_number_of_days'),
30  'min' => 0,
31 ]);
32 
34  '#type' => 'number',
35  '#label' => elgg_echo('config:message_delay:label'),
36  '#help' => elgg_echo('config:message_delay:help'),
37  'name' => 'message_delay',
38  'value' => (int) elgg_get_config('message_delay'),
39  'min' => 1,
40 ]);
41 
42 echo elgg_view_module('info', elgg_echo('other'), $body, ['id' => 'elgg-settings-advanced-other']);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1143
$body
Advanced site settings, other section.
Definition: other.php:6
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:944
elgg echo
Translates a string.
Definition: deprecated.js:530
elgg_get_config($name, $default=null)
Get an Elgg configuration value.