function subscriptions_purge_queue in Subscriptions 6
Same name and namespace in other branches
- 7 subscriptions_mail.module \subscriptions_purge_queue()
- 2.0.x subscriptions_mail/subscriptions_mail.module \subscriptions_purge_queue()
Purge the Subscriptions queue.
1 string reference to 'subscriptions_purge_queue'
- _subscriptions_mail_purge_queue_form in ./
subscriptions_mail.module - Form builder for the purge Subscriptions queue confirmation form.
File
- ./
subscriptions_mail.module, line 85 - Subscriptions module mail gateway.
Code
function subscriptions_purge_queue() {
db_query("DELETE FROM {subscriptions_queue}");
$variables = array(
'!Module' => 'Subscriptions',
'%count' => db_affected_rows(),
);
drupal_set_message(t('All %count items have been purged.', $variables));
$watchdog = 'watchdog';
// keep potx from translating 'cron'
$watchdog('cron', t('!Module: all %count items have been purged.', $variables), NULL, WATCHDOG_WARNING);
}