Elgg  Version 1.9
Namespaces | Variables
remove.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $friend_guid = get_input('friend')
 
 $friend = get_entity($friend_guid)
 
 $errors = false
 
 try
 

Variable Documentation

◆ $errors

$errors = false

Definition at line 12 of file remove.php.

◆ $friend

$friend = get_entity($friend_guid)

Definition at line 11 of file remove.php.

◆ $friend_guid

$friend_guid = get_input('friend')

Definition at line 10 of file remove.php.

◆ try

try
Initial value:
{
if ($friend instanceof ElggUser) {
} else {
register_error(elgg_echo("friends:remove:failure", array($friend->name)));
$errors = true;
}
} catch (Exception $e) {
register_error(elgg_echo("friends:remove:failure", array($friend->name)));
$errors = true;
}
if (!$errors) {
system_message(elgg_echo("friends:remove:successful", array($friend->name)));
}
register_error($error)
Display an error on next page load.
Definition: elgglib.php:605
system_message($message)
Display a system message on next page load.
Definition: elgglib.php:592
const REFERER
Definition: elgglib.php:2162
forward($location="", $reason='system')
Forward to $location.
Definition: elgglib.php:79
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$friend
Definition: remove.php:11
$friend_guid
Definition: remove.php:10
$errors
Definition: remove.php:12
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:32
$e
Definition: metadata.php:12

Definition at line 15 of file remove.php.