Elgg  Version 4.3
Variables
delete.php File Reference

Go to the source code of this file.

Variables

 $id = (int) get_input('id')
 Generic annotation delete action. More...
 
if($id< 1) $annotation = elgg_get_annotation_from_id($id)
 
if(!$annotation instanceof ElggAnnotation) if(!$annotation->canEdit()) $ok_content
 
if(!$annotation instanceof ElggAnnotation) if(!$annotation->canEdit()) if(!$annotation->delete()) $lan_key = "annotation:delete:{$annotation->name}:success"
 

Variable Documentation

if ($id< 1) $annotation = elgg_get_annotation_from_id($id)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 11 of file delete.php.

$id = (int) get_input('id')

Generic annotation delete action.

Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 6 of file delete.php.

if (!$annotation instanceof ElggAnnotation) if (!$annotation->canEdit()) if (!$annotation->delete()) $lan_key = "annotation:delete:{$annotation->name}:success"

Definition at line 33 of file delete.php.

if (!$annotation instanceof ElggAnnotation) if (!$annotation->canEdit()) $ok_content
Initial value:
= [
'annotation' => $annotation->toObject()
if($id< 1) $annotation
Definition: delete.php:11

Definition at line 20 of file delete.php.