Go to the source code of this file.
|
| $entity = elgg_extract('entity', $vars) |
| Form to mute notifications about an entity. More...
|
|
| $recipient = elgg_extract('recipient', $vars) |
|
if(!$entity instanceof\ElggEntity||!$recipient instanceof\ElggUser) | $get_language_key |
|
| $checkboxes = '' |
|
| $mute_guids = [] |
|
if($entity instanceof\ElggComment) elseif(!elgg_is_empty($entity->getDisplayName())) | $container = ($entity instanceof ElggComment) ? $entity->getContainerEntity()->getContainerEntity() : $entity->getContainerEntity() |
|
if(($container instanceof\ElggGroup||$container instanceof\ElggUser)&&!in_array($container->guid, $mute_guids)) | $owner = $entity->getOwnerEntity() |
|
if(($owner instanceof\ElggGroup||$owner instanceof\ElggUser)&&!in_array($owner->guid, $mute_guids)) | $actor = elgg_extract('actor', $vars) |
|
if(($actor instanceof\ElggGroup||$actor instanceof\ElggUser)&&!in_array($actor->guid, $mute_guids)) | if (empty($checkboxes)) |
|
| $hmac |
|
| $footer |
|
if (($owner instanceof\ElggGroup||$owner instanceof\ElggUser)&&!in_array($owner->guid, $mute_guids)) $actor = elgg_extract('actor', $vars) |
if ($entity instanceof\ElggComment) elseif (!elgg_is_empty($entity->getDisplayName())) $container = ($entity instanceof ElggComment) ? $entity->getContainerEntity()->getContainerEntity() : $entity->getContainerEntity() |
Form to mute notifications about an entity.
$vars['entity'] the entity to mute notifications for $vars['recipient'] the recipient of the notification $vars['actor'] the actor of the notification
Definition at line 10 of file mute.php.
Initial value: '#type' => 'submit',
])
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.
Definition at line 124 of file mute.php.
if (!$entity instanceof\ElggEntity||!$recipient instanceof\ElggUser) $get_language_key |
Initial value: "notifications:mute:{$entity->type}:{$entity->subtype}",
"notifications:mute:{$entity->type}",
"notifications:mute:{$default_postfix}",
];
}
}
}
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition at line 16 of file mute.php.
Initial value:])
elgg_build_hmac($data)
Get an HMAC token builder/validator object.
Definition at line 108 of file mute.php.
if (($container instanceof\ElggGroup||$container instanceof\ElggUser)&&!in_array($container->guid, $mute_guids)) $owner = $entity->getOwnerEntity() |
if (($actor instanceof\ElggGroup||$actor instanceof\ElggUser)&&!in_array($actor->guid, $mute_guids)) if(empty($checkboxes)) |