Created
March 22, 2017 13:57
-
-
Save tribulant/fe5c7956e6b44b4f4a70188414b15484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $SubscribersList; | |
$subscriber_id = 1; | |
$old_list_id = 1; | |
$new_list_id = 2; | |
// Delete the list association... | |
$Db -> model = $SubscribersList -> model; | |
$Db -> delete_all(array('subscriber_id' => $subscriber_id, 'list_id' => $old_list_id)); | |
// Add a new list association | |
$Db -> model = $SubscribersList -> model; | |
$subscriberslist_data = array('subscriber_id' => $subscriber_id, 'list_id' => $new_list_id, 'active' => "Y"); | |
$Db -> save($subscriberslist_data, true); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment