Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_selectedunseen()

Description

Mark all selected messages as unseen

Parameters

ColumnTypeDefaultDescription
$messages
List $messages of message refs in JSON list format

Return

void

Location

include/message_functions.php lines 453 to 462

Definition

 
function message_selectedunseen($messages)
    {
    global 
$userref;
 
    
$parameters = array("i",(int)$userref);
    
$messages json_decode($messagestrue);
    
$parameters array_merge($parametersps_param_fill($messages,"i"));
 
    
ps_query("UPDATE user_message SET seen = '0' WHERE user = ? AND ref IN (" ps_param_insert(count($messages)) . ")"$parameters);
    }

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