36 if (
strpos($relationship,
'notify:') ===
false) {
40 $parts = explode(
':', $relationship);
41 if (
count($parts) > 2) {
64 '#type' =>
'checkboxes',
65 '#class' =>
'elgg-subscription-methods',
66 'name' =>
"subscriptions[{$entity->guid}][notify]",
69 'align' =>
'horizontal',
81 'title' =>
elgg_echo(
'notifications:subscriptions:record:settings'),
82 'icon' =>
'chevron-down',
85 'user_guid' =>
$user->guid,
92 'icon' =>
'chevron-up',
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
$user
Generic view to set a notification preference for a specific purpose.
elgg_require_css(string $view)
Register a CSS view name to be included in the HTML head.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
$relationship
Elgg default relationship view.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=[])
View the icon of an entity.
if(!$user instanceof\ElggUser||empty($description)||empty($purpose)) $methods
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
foreach($methods as $method) $container
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
$has_detailed_subscriptions
elgg echo
Translates a string.
elgg_get_notification_methods()
Returns registered delivery methods for notifications [ 'email' => 'email', 'sms' => 'sms'...
if(empty($methods)) $method_options
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.