function botcha_point_disable_confirm in BOTCHA Spam Prevention 6
Same name and namespace in other branches
- 7 botcha.pages.inc \botcha_point_disable_confirm()
Confirm dialog for disabling/deleting a BOTCHA point
1 string reference to 'botcha_point_disable_confirm'
- botcha_point_admin in ./
botcha.pages.inc - Central handler for BOTCHA point administration (adding, disabling, deleting)
File
- ./
botcha.pages.inc, line 376 - Implementation of botcha administration forms.
Code
function botcha_point_disable_confirm(&$form_state, $botcha_point_form_id, $delete) {
$form = array();
$form['botcha_point_form_id'] = array(
'#type' => 'value',
'#value' => $botcha_point_form_id,
);
$form['botcha_point_delete'] = array(
'#type' => 'value',
'#value' => $delete,
);
if ($delete) {
$message = t('Are you sure you want to delete the BOTCHA for form_id %form_id?', array(
'%form_id' => $botcha_point_form_id,
));
$yes = t('Delete');
}
else {
$message = t('Are you sure you want to disable the BOTCHA for form_id %form_id?', array(
'%form_id' => $botcha_point_form_id,
));
$yes = t('Disable');
}
return confirm_form($form, $message, 'admin/user/botcha', '', $yes);
}