Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

unsubscribe_user_from_periodic_report()

Parameters

ColumnTypeDefaultDescription
$user_id
$periodic_email_id

Location

include/reporting_functions.php lines 383 to 401

Definition

 
function unsubscribe_user_from_periodic_report($user_id$periodic_email_id)
    {
    
$query sprintf('
            INSERT INTO report_periodic_emails_unsubscribe (
                                                               user_id,
                                                               periodic_email_id
                                                           )
                 VALUES (
                            "%s", # user_id
                            "%s"  # periodic_email_id
                        );
        '
,
        
$user_id,
        
$periodic_email_id
    
);
    
sql_query($query);

    return 
true;
    }

This article was last updated 14th July 2020 01:05 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.