profileSaveAvatarChanges

Description

Saves changes to a user's avatar.

Syntax

mixed profileSaveAvatarChanges (string &$value)



Parameter &$value

Expected type: Enumerated String
Description: What type of avatar the user has chosen

Possible string values
Allowed values Description
'external' The user has chosen to use an avatar stored elsewhere on the web
'none' The user has chosen not to have an avatar
'server_stored' The user has chosen to use one of the server-stored avatars
'upload' The user has chosen to upload an avatar



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Boolean Returns true if the avatar was saved successfully
String Returns "bad_avatar" if the avatar couldn't be saved (too big, couldn't be resized, no image size, etc.)


Advertisement: