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 598 to 605

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 22nd May 2024 15:05 Europe/London time based on the source file dated 8th May 2024 18:45 Europe/London time.