function word_link_list_page_form_delete_confirm in Word Link 8
Same name and namespace in other branches
- 7 word_link.admin.inc \word_link_list_page_form_delete_confirm()
Confirm form for delete operation.
1 call to word_link_list_page_form_delete_confirm()
- word_link_list_page_form in ./
word_link.admin.inc - Buid a Word Link list page.
File
- ./
word_link.admin.inc, line 249 - Administrative pages for the Word Link module.
Code
function word_link_list_page_form_delete_confirm($form, &$form_state, $words) {
$form['words']['#tree'] = TRUE;
foreach ($words as $wid) {
$form['words'][$wid] = array(
'#type' => 'hidden',
'#value' => $wid,
);
}
$form['#submit'][] = 'word_link_list_page_form_delete_confirm_submit';
$confirm_question = format_plural(count($words), 'Are you sure you want to delete this item?', 'Are you sure you want to delete these items?');
return confirm_form($form, $confirm_question, 'admin/config/content/word-link/list', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}