function reviews_list_confirm_delete in Reviews 7
Confirm handler for the reviews_list form.
1 call to reviews_list_confirm_delete()
- reviews_list in includes/
reviews.admin.inc - Form builder for reviews moderation.
File
- includes/
reviews.admin.inc, line 270 - This file contains all the functions necessary for the admin pages of the reviews system.
Code
function reviews_list_confirm_delete($form, &$form_state) {
$form['reviews'] = array(
'#type' => 'value',
'#value' => $form_state['values']['reviews'],
);
$form['delete'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return confirm_form($form, t('Are you sure you want to delete the selected reviews'), 'admin/structure/reviews/list', t('Warning: This action cannot be undone and all deleted reviews will be permanently lost.'), t('Delete'), t('Cancel'));
}