function checklistapi_checklist_clear_confirm in Checklist API 7
Page callback: Form constructor for "Clear saved progress" confirmation form.
Parameters
string $id: The checklist ID.
See also
1 string reference to 'checklistapi_checklist_clear_confirm'
- checklistapi_menu in ./
checklistapi.module - Implements hook_menu().
File
- ./
checklistapi.pages.inc, line 18 - Page callbacks for the Checklist API module.
Code
function checklistapi_checklist_clear_confirm($form, &$form_state, $id) {
$checklist = checklistapi_checklist_load($id);
$form['#checklist'] = $checklist;
$question = t('Are you sure you want to clear %title saved progress?', array(
'%title' => $checklist->title,
));
$description = t('All progress details will be erased. This action cannot be undone.');
$yes = t('Clear');
$no = t('Cancel');
return confirm_form($form, $question, $checklist->path, $description, $yes, $no);
}