40 '#type' =>
'checkboxes',
41 'name' =>
"notification_setting[{$purpose}]",
45 'align' =>
'horizontal',
$user
Generic view to set a notification preference for a specific purpose.
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.
if(!$user instanceof\ElggUser||empty($description)||empty($purpose)) $methods
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_notification_methods()
Returns registered delivery methods for notifications [ 'email' => 'email', 'sms' => 'sms'...
if(empty($methods)) $method_options