You are here

function simplenews_activate_subscription in Simplenews 6.2

Same name and namespace in other branches
  1. 5 simplenews.module \simplenews_activate_subscription()
  2. 6 simplenews.admin.inc \simplenews_activate_subscription()

Callback function to activate the specified subscriptions.

Parameters

$snid array of snid's:

1 string reference to 'simplenews_activate_subscription'
simplenews_subscription_list_form_submit in includes/simplenews.admin.inc

File

includes/simplenews.admin.inc, line 1148
Newsletter admin, subscription admin, simplenews settings

Code

function simplenews_activate_subscription($snid) {
  db_query('
    UPDATE {simplenews_subscriptions}
    SET activated = %d
    WHERE snid IN(' . db_placeholders($snid, 'int') . ')', array_merge(array(
    '1',
  ), $snid));
}