Elgg  Version 2.3
Namespaces | Variables
delete.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $id = (int)get_input('id')
 
 $items = elgg_get_river(['id' => $id])
 
if(! $items) $item = $items[0]
 
if(! $item->canDelete()) if($item->delete()) else
 

Variable Documentation

◆ $id

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

Definition at line 9 of file delete.php.

◆ $item

if (! $items) $item = $items[0]
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 17 of file delete.php.

◆ $items

$items = elgg_get_river(['id' => $id])

Definition at line 11 of file delete.php.

◆ else

if (! $item->canDelete()) if ( $item->delete()) else
Initial value:
{
register_error(elgg_echo('river:delete:fail'))
register_error($error)
Display an error on next page load.
Definition: elgglib.php:464
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 25 of file delete.php.