24 } 
catch (Exception 
$e) {
 
   31         'view' => 
'river/relationship/friend/create',
 
   32         'action_type' => 
'friend',
 
register_error($error)
Display an error on next page load.
 
system_message($message)
Display a system message on next page load.
 
forward($location="", $reason='system')
Forward to $location.
 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
 
elgg_create_river_item(array $options=array())
Adds an item to the river.
 
get_entity($guid)
Loads and returns an entity object from a guid.
 
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
 
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.