Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

set_user_profile()

Description

Set user's profile image and profile description (bio). Used by ../pages/user/user_profile_edit.php to setup user's profile.

Parameters

ColumnTypeDefaultDescription
$user_ref int User id of user who's profile is being set.
$profile_text string User entered profile description text (bio).
$image_path string Path to temp file created if user chose to upload a profile image.

Return

boolean If an error is encountered saving the profile image return will be false.

This article was last updated 15th February 2025 20:35 Europe/London time based on the source file dated 13th February 2025 18:00 Europe/London time.