43 $file->owner_guid =
$guid;
44 $file->setFilename(
"profile/{$guid}{$name}.jpg");
46 $file->write($resized);
51 foreach (
$files as $file) {
68 $view =
'river/user/default/profileiconupdate';
72 'action_type' =>
'update',
73 'subject_guid' =>
$owner->guid,
74 'object_guid' =>
$owner->guid,
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
if($guid==elgg_get_logged_in_user_guid()) $name
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $x1
get_resized_image_from_existing_file($input_name, $maxwidth, $maxheight, $square=false, $x1=0, $y1=0, $x2=0, $y2=0, $upscale=false)
Gets the jpeg contents of the resized version of an already uploaded image (Returns false if the file...
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.
if(!file_exists($filename)) $icon_sizes
elgg system_message
Wrapper function for system_messages.
elgg register_error
Wrapper function for system_messages.
elgg_delete_river(array $options=array())
Delete river items.
get_entity($guid)
Loads and returns an entity object from a guid.