Elgg  Version 1.9
Namespaces | Variables
add.php File Reference

Go to the source code of this file.


 Activate a plugin or plugins.


 $friend_guid = get_input('friend')
 $friend = get_entity($friend_guid)
if(!$friend) $errors = false

Variable Documentation

if (!$friend) $errors = false

Definition at line 17 of file add.php.

$friend = get_entity($friend_guid)

Definition at line 11 of file add.php.

$friend_guid = get_input('friend')

Definition at line 10 of file add.php.

Initial value:
$errors = true;
} catch (Exception $e) {
register_error(elgg_echo("friends:add:failure", array($friend->name)));
$errors = true;
if (!$errors) {
'view' => 'river/relationship/friend/create',
'action_type' => 'friend',
'subject_guid' => elgg_get_logged_in_user_guid(),
'object_guid' => $friend_guid,
system_message(elgg_echo("friends:add:successful", array($friend->name)));
Definition: metadata.php:12
Definition: add.php:11
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
if(!$friend) $errors
Definition: add.php:17
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_create_river_item(array $options=array())
Adds an item to the river.
Definition: river.php:37
Definition: elgglib.php:2162
Definition: add.php:10
elgg system_message
Wrapper function for system_messages.
Definition: elgglib.js:374
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:383
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:32
Return the current logged in user by guid.
Definition: sessions.php:42

Definition at line 20 of file add.php.