20 if (!
$owner->saveIconFromUploadedFile(
'avatar')) {
28 $view =
'river/user/default/profileiconupdate';
32 'action_type' =>
'update',
33 'subject_guid' =>
$owner->guid,
34 'object_guid' =>
$owner->guid,
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $error
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_delete_river(array $options=[])
Alias of elgg_delete_river() that doesn't raise notices.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_get_friendly_upload_error($error_code)
Returns a human-readable message for PHP's upload error codes.
elgg_create_river_item(array $options=array())
Adds an item to the river.
elgg system_message
Wrapper function for system_messages.
elgg register_error
Wrapper function for system_messages.
elgg_trigger_event($event, $object_type, $object=null)
$guid
Avatar upload action.
get_entity($guid)
Loads and returns an entity object from a guid.