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 531 to 538

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 24th June 2021 12:35 Europe/London time based on the source file dated 9th June 2021 14:55 Europe/London time.