18 '#type' =>
'fieldset',
20 '#help' =>
elgg_echo(
'usersettings:notifications:timed_muting:help'),
21 'align' =>
'horizontal',
25 '#label' =>
elgg_echo(
'usersettings:notifications:timed_muting:start'),
26 'name' =>
'timed_muting_start',
32 '#label' =>
elgg_echo(
'usersettings:notifications:timed_muting:end'),
33 'name' =>
'timed_muting_end',
48 '#type' =>
'fieldset',
49 '#label' =>
elgg_echo(
'usersettings:notifications:timed_muting'),
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$user instanceof\ElggUser) $start
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
$user
Set a time window where you don't wish to receive notifications.