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
$guid
Avatar upload action.
_elgg_delete_river(array $options=[])
Alias of elgg_delete_river() that doesn't raise notices.
register_error($error)
Display an error on next page load.
elgg_trigger_event($event, $object_type, $object=null)
system_message($message)
Display a system message on next page load.
forward($location="", $reason='system')
Forward to $location.
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_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_get_friendly_upload_error($error_code)
Returns a human-readable message for PHP's upload error codes.