function subscriptions_purge_queue in Subscriptions 7
Same name and namespace in other branches
- 6 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 109 - Subscriptions module mail gateway.
Code
function subscriptions_purge_queue() {
$count = db_delete('subscriptions_queue')
->execute();
$variables = array(
'@Subscriptions' => 'Subscriptions',
'%count' => $count,
);
drupal_set_message(t('All %count items have been purged.', $variables));
$watchdog = 'watchdog';
// keep potx from translating 'cron'
$watchdog('cron', t('@Subscriptions: all %count items have been purged.', $variables), NULL, WATCHDOG_WARNING);
}