function campaignmonitor_local_dbmerge in Campaign Monitor 8
Parameters
$uid:
$list_id:
2 calls to campaignmonitor_local_dbmerge()
- campaignmonitor_local_campaignmonitor_subscribe in modules/
campaignmonitor_local/ campaignmonitor_local.module - Implements hook_campaignmonitor_subscribe().
- campaignmonitor_local_insert_user_data in modules/
campaignmonitor_local/ campaignmonitor_local.module - Insert the data into the database.
File
- modules/
campaignmonitor_local/ campaignmonitor_local.module, line 110 - Campaignmonitor Local core functions.
Code
function campaignmonitor_local_dbmerge($uid, $list_id) {
\Drupal::database()
->merge('campaignmonitor_local_subscriptions')
->keys([
'uid' => $uid,
'list_id' => $list_id,
])
->fields([
'updated' => REQUEST_TIME,
])
->execute();
}