function queue_ui_delete_submit in Queue UI 7
Same name and namespace in other branches
- 6 queue_ui.pages.inc \queue_ui_delete_submit()
- 7.2 queue_ui.pages.inc \queue_ui_delete_submit()
Submit handler for deleting queues.
1 string reference to 'queue_ui_delete_submit'
- queue_ui_confirm_delete in ./
queue_ui.pages.inc - Confirm form for deleting queues.
File
- ./
queue_ui.pages.inc, line 186 - queue_ui.pages.inc
Code
function queue_ui_delete_submit($form, &$form_state, $queues) {
$values = $form_state['values'];
$defined_queues = queue_ui_defined_queues();
foreach ($queues as $name) {
$queue = DrupalQueue::get($name);
if (isset($defined_queues[$name]['delete'])) {
$function = $defined_queues[$name]['delete'];
$function($queue);
}
$queue
->deleteQueue();
}
drupal_set_message(format_plural(count($values['queues']), 'Queue deleted', '@count queues deleted'));
return;
}