function queue_ui_confirm_delete in Queue UI 7
Same name and namespace in other branches
- 6 queue_ui.pages.inc \queue_ui_confirm_delete()
- 7.2 queue_ui.pages.inc \queue_ui_confirm_delete()
Confirm form for deleting queues.
1 string reference to 'queue_ui_confirm_delete'
- queue_ui_overview_submit in ./
queue_ui.pages.inc - Overview submit handler.
File
- ./
queue_ui.pages.inc, line 169 - queue_ui.pages.inc
Code
function queue_ui_confirm_delete($form, &$form_state) {
$form['queues'] = array(
'#type' => 'value',
'#value' => $form_state['storage']['queues'],
);
$description = t('All items in each queue will be deleted, regardless of if leases exist. This operation cannot be undone.');
// Specify our step submit callback.
$form['step_submit'] = array(
'#type' => 'value',
'#value' => 'queue_ui_delete_submit',
);
return confirm_form($form, format_plural(count($form_state['storage']['queues']), 'Are you sure you want to delete the queue?', 'Are you sure you want to delete @count queues?'), 'admin/config/system/queue-ui', $description, t('Delete'), t('Cancel'));
}