function simplenews_activate_subscription in Simplenews 5
Same name and namespace in other branches
- 6.2 includes/simplenews.admin.inc \simplenews_activate_subscription()
- 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 ./
simplenews.module - Submit the subscription administration update form.
File
- ./
simplenews.module, line 1647
Code
function simplenews_activate_subscription($snid) {
db_query('UPDATE {simplenews_subscriptions} SET a_status = 1 WHERE snid IN(' . implode(',', array_fill(0, count($snid), '%d')) . ')', $snid);
}