You are here

function simplenews_inactivate_subscription in Simplenews 5

Same name and namespace in other branches
  1. 6.2 includes/simplenews.admin.inc \simplenews_inactivate_subscription()
  2. 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'
simplenews_subscription_list_form_submit in ./simplenews.module
Submit the subscription administration update form.

File

./simplenews.module, line 1656

Code

function simplenews_inactivate_subscription($snid) {
  db_query('UPDATE {simplenews_subscriptions} SET a_status = 0 WHERE snid IN(' . implode(',', array_fill(0, count($snid), '%d')) . ')', $snid);
}