Collections functions
General functions
Render functions
Theme permission functions
Resource functions

delete_periodic_report()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/reporting_functions.php lines 555 to 562

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 2nd October 2022 16:35 Europe/London time based on the source file dated 29th September 2022 18:05 Europe/London time.