Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 431

Definition

 
function message_deleteselusrmsg($messages)
    {
    global 
$userref;

    
$parameters = array("i",(int)$userref);
    
$messages json_decode($messagestrue);
    if (
count($messages) > 0)
        {
        
$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 29th May 2024 09:35 Europe/London time based on the source file dated 20th May 2024 10:55 Europe/London time.