function sf_notifications_empty_confirm_form_submit in Salesforce Suite 7.2
File
- sf_notifications/
sf_notifications.admin.inc, line 195
Code
function sf_notifications_empty_confirm_form_submit($form, &$form_state) {
// Release any expired claims so they are available to be re-claimed.
sf_notifications_release_expired_claims();
$queue = DrupalQueue::get('sf_notifications_queue');
while ($item = $queue
->claimItem(60)) {
$queue
->deleteItem($item);
}
drupal_set_message(t('Salesforce notifications queue items deleted.'));
drupal_goto(SALESFORCE_PATH_NOTIFICATIONS_ADMIN . '/queue');
}