Elgg  Version 2.3
Namespaces | Variables
delete.php File Reference

Go to the source code of this file.


 Save menu items.


 $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 = (int)get_input('id')

Definition at line 9 of file delete.php.

if (!$items) $item = $items[0]

Definition at line 17 of file delete.php.

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

Definition at line 11 of file delete.php.

if (!$item->canDelete()) if ($item->delete()) else
Initial value:
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:399

Definition at line 25 of file delete.php.