Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

delete_periodic_report()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/reporting_functions.php lines 462 to 469

Definition

 
function delete_periodic_report($ref)
    {
    global 
$userref;
    
sql_query('DELETE FROM report_periodic_emails WHERE user = "' $userref '" AND ref = "' $ref '";');
    
sql_query('DELETE FROM report_periodic_emails_unsubscribe WHERE periodic_email_id = "' $ref '"');

    return 
true;
    }

This article was last updated 25th November 2020 04:35 Europe/London time based on the source file dated 18th November 2020 08:15 Europe/London time.