Elgg
Version 4.3
|
Go to the source code of this file.
Variables | |
$entity_guid = (int) get_input('guid') | |
Handle muting notifications about an entity. More... | |
$user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid()) | |
$forward_url = get_input('forward_url') | |
$show_success = (bool) get_input('show_success', true) | |
$entity = get_entity($entity_guid) | |
if(!$entity instanceof\ElggEntity) | $user = get_user($user_guid) |
if(!$user instanceof\ElggUser||!$user->canEdit()) | $display_name = $entity->getDisplayName() ?: elgg_echo('item') |
if(!$entity->muteNotifications($user->guid)) | $success_keys |
$message = '' | |
if (!$user instanceof\ElggUser||!$user->canEdit()) $display_name = $entity->getDisplayName() ?: elgg_echo('item') |
$entity = get_entity($entity_guid) |
$entity_guid = (int) get_input('guid') |
if (!$entity->muteNotifications($user->guid)) $success_keys |
if (!$entity instanceof\ElggEntity) $user = get_user($user_guid) |
$user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid()) |