Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

delete_periodic_report()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/reporting_functions.php lines 580 to 587

Definition

 
function delete_periodic_report($ref)
    {
    global 
$userref;
    
ps_query('DELETE FROM report_periodic_emails WHERE user = ? AND ref = ?', array("i",$userref"i",$ref));
    
ps_query('DELETE FROM report_periodic_emails_unsubscribe WHERE periodic_email_id = ?', array("i"$ref));

    return 
true;
    }

This article was last updated 19th March 2024 11:35 Europe/London time based on the source file dated 8th March 2024 15:10 Europe/London time.