Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_profile_image()

Description

Generate the url to the user's profile image. Fetch the url by the user's id or by the profile image filename.

Parameters

ColumnTypeDefaultDescription
$user_ref int "" User id of the user who's profile image is requested.
$by_image string "" The filename of the profile image to fetch having been collected from the db separately: user.profile_image

Return

string The url to the user's profile image if available or blank if not set.

This article was last updated 19th March 2024 08:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.