function workflow_admin_ui_delete_form in Workflow 6.2
Same name and namespace in other branches
- 6 workflow_admin_ui/workflow_admin_ui.module \workflow_admin_ui_delete_form()
- 7 workflow_admin_ui/workflow_admin_ui.pages.inc \workflow_admin_ui_delete_form()
Form builder. Create form for confirmation of workflow deletion.
Parameters
$wid: The ID of the workflow to delete.
Return value
Form definition array.
1 string reference to 'workflow_admin_ui_delete_form'
- workflow_admin_ui_menu in workflow_admin_ui/
workflow_admin_ui.module - Implementation of hook_menu().
File
- workflow_admin_ui/
workflow_admin_ui.module, line 190 - Provides administrative UI for workflow. Why it's own module? Lower code footprint and better performance. Additional creadit to gcassie ( http://drupal.org/user/80260 ) for the initial push to split UI out of core workflow. We're moving…
Code
function workflow_admin_ui_delete_form(&$form_state, $wid, $sid = NULL) {
if (isset($sid)) {
return workflow_state_delete_form($wid, $sid);
}
$form['wid'] = array(
'#type' => 'value',
'#value' => $wid,
);
return confirm_form($form, t('Are you sure you want to delete %title? All nodes that have a workflow state associated with this workflow will have those workflow states removed.', array(
'%title' => workflow_get_name($wid),
)), !empty($_GET['destination']) ? $_GET['destination'] : 'admin/build/workflow', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}