You are here

function simplenews_subscriber_update in Simplenews 6.2

Update subscriber data.

Parameters

$snid: Subscribers ID.

$data: Array of data to be updated 'language' Preferred newsletter language (default: '')

1 call to simplenews_subscriber_update()
simplenews_subscriptions_admin_form_submit in includes/simplenews.subscription.inc
FAPI ADMIN subscription form_submit.

File

./simplenews.module, line 1381
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_subscriber_update($subscription, $data) {
  $data['snid'] = $subscription->snid;
  drupal_write_record('simplenews_subscriptions', $data, 'snid');
}