function simplenews_inactivate_subscription in Simplenews 6.2
Same name and namespace in other branches
- 5 simplenews.module \simplenews_inactivate_subscription()
- 6 simplenews.admin.inc \simplenews_inactivate_subscription()
Callback function to inactivate the specified subscriptions.
Parameters
$snid array of snid's:
1 string reference to 'simplenews_inactivate_subscription'
File
- includes/
simplenews.admin.inc, line 1163 - Newsletter admin, subscription admin, simplenews settings
Code
function simplenews_inactivate_subscription($snid) {
db_query('
UPDATE {simplenews_subscriptions}
SET activated = %d
WHERE snid IN(' . db_placeholders($snid, 'int') . ')', array_merge(array(
'0',
), $snid));
}