Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_seen()

Description

Mark a message as seen

Parameters

ColumnTypeDefaultDescription
$message int Message ID
$seen_type int MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN - see definitons.php

Return

void

Location

include/message_functions.php lines 148 to 151

Definition

 
function message_seen($message,$seen_type=MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN)
    {
    
ps_query("UPDATE `user_message` SET seen = seen | ? WHERE `ref` = ?", array("i",$seen_type,"i",$message));
    }

This article was last updated 25th May 2022 21:35 Europe/London time based on the source file dated 26th January 2022 11:10 Europe/London time.