29 $params[
'description'] =
elgg_echo(
'usersettings:notifications:content_create:description');
36 $params[
'description'] =
elgg_echo(
'usersettings:notifications:create_comment:description');
50 $params[
'description'] =
elgg_echo(
'usersettings:notifications:admin_validation_notification:description');
51 $params[
'purpose'] =
'admin_validation_notification';
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
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(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_get_notification_methods()
Returns registered delivery methods for notifications [ 'email' => 'email', 'sms' => 'sms',...
$user
Show the different notification settings / preferences for the given user.
if(! $user instanceof \ElggUser) $methods
if(empty($methods)) $params