Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_getrefs()

Description

Get all message refs for a given user

Parameters

ColumnTypeDefaultDescription
$user string User ID

Return

void

Location

include/message_functions.php lines 764 to 771

Definition

 
function message_getrefs($user)
    {
    
$user_messages ps_query("SELECT ref FROM user_message WHERE user = ?", array("i",$user));
 
    
$js_array array_values($user_messages);
 
    echo 
json_encode($js_array);
    }

This article was last updated 26th September 2022 12:35 Europe/London time based on the source file dated 13th September 2022 10:20 Europe/London time.