Elgg  Version 3.0
Variables
delete.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Default entity delete action. More...
 
 $entity = get_entity($guid)
 
 $display_name = $entity->getDisplayName() ?: elgg_echo('entity:delete:item')
 
 $type = $entity->getType()
 
 $subtype = $entity->getSubtype()
 
 $container = $entity->getContainerEntity()
 
if(!$entity->delete()) $forward_url = elgg_normalize_site_url(get_input('forward_url'))
 
if(!$forward_url) $success_keys
 
 $message = ''
 

Variable Documentation

$container = $entity->getContainerEntity()

Definition at line 23 of file delete.php.

$display_name = $entity->getDisplayName() ?: elgg_echo('entity:delete:item')

Definition at line 19 of file delete.php.

$entity = get_entity($guid)

Definition at line 6 of file delete.php.

if (!$entity->delete()) $forward_url = elgg_normalize_site_url(get_input('forward_url'))

Definition at line 30 of file delete.php.

$guid = (int) get_input('guid')

Default entity delete action.

Definition at line 5 of file delete.php.

$message = ''

Definition at line 82 of file delete.php.

$subtype = $entity->getSubtype()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 22 of file delete.php.

if (!$forward_url) $success_keys
Initial value:
= [
"entity:delete:$type:$subtype:success",
"entity:delete:$type:success",
"entity:delete:success",
]

Definition at line 76 of file delete.php.

$type = $entity->getType()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 21 of file delete.php.