18         '#type' => 
'fieldset',
 
   19         '#help' => 
elgg_echo(
'usersettings:notifications:timed_muting:help'),
 
   20         'align' => 
'horizontal',
 
   24                 '#label' => 
elgg_echo(
'usersettings:notifications:timed_muting:start'),
 
   25                 'name' => 
'timed_muting_start',
 
   31                 '#label' => 
elgg_echo(
'usersettings:notifications:timed_muting:end'),
 
   32                 'name' => 
'timed_muting_end',
 
   47     '#type' => 
'fieldset',
 
   48     'legend' => 
elgg_echo(
'usersettings:notifications:timed_muting'),
 
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
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.
if(! $user instanceof \ElggUser) $start