Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_deleteselusrmsg()

Description

Delete all selected messages

Parameters

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

Return

void

Location

include/message_functions.php lines 419 to 428

Definition

 
function message_deleteselusrmsg($messages)
    {
    global 
$userref;
 
    
$parameters = array("i",(int)$userref);
    
$messages json_decode($messagestrue);
    
$parameters array_merge($parametersps_param_fill($messages,"i"));
 
    
ps_query("DELETE FROM user_message WHERE user = ? AND ref IN (" ps_param_insert(count($messages)) . ")"$parameters);
    }

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