acs_user::create_portrait (public)
acs_user::create_portrait -user_id user_id \ [ -description description ] [ -filename filename ] \ [ -mime_type mime_type ] -file file
Defined in packages/acs-tcl/tcl/community-core-procs.tcl
Sets (or resets) the portraif for current user to the one specified.
- Switches:
- -user_id (required)
- user_id of user whose portrait we want to set.
- -description (optional)
- A caption for the portrait.
- -filename (optional)
- Original filename of the portrait. Used to guess the mimetype if an explicit one is not specified.
- -mime_type (optional)
- mimetype of the portrait. If missing, filename will be used to guess one.
- -file (required)
- Actual file containing the portrait
- Returns:
- item_id of the new content item
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_admin_merge_MergeUserInfo, auth_authenticate, demote_promote_a_user