19 $file->setFilename(
"profile/{$user_guid}{$name}.jpg");
20 $filepath = $file->getFilenameOnFilestore();
21 if (!$file->delete()) {
22 elgg_log(
"Avatar file remove failed. Remove $filepath manually, please.",
'WARNING');
33 unset(
$user->icontime);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
if($guid==elgg_get_logged_in_user_guid()) $name
if(!$user||!$user->canEdit()) $icon_sizes
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
get_user($guid)
Get a user object from a GUID.
elgg system_message
Wrapper function for system_messages.
elgg_log($message, $level= 'NOTICE')
Display or log a message.
elgg register_error
Wrapper function for system_messages.
$user_guid
Avatar remove action.