You are here

function botcha_form_delete_form in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 botcha.admin.inc \botcha_form_delete_form()

Confirm dialog for deleting a BOTCHA form completely.

1 string reference to 'botcha_form_delete_form'
botcha_menu in ./botcha.module
Implements hook_menu().

File

./botcha.admin.inc, line 275
Implementation of botcha administration forms.

Code

function botcha_form_delete_form($form, $form_state, $botcha_form = NULL) {
  $form = array();
  $form['botcha_form_id'] = array(
    '#type' => 'value',
    '#value' => $botcha_form->id,
  );
  $message = t('Are you sure you want to delete the BOTCHA protection for form_id %form_id?', array(
    '%form_id' => $botcha_form->id,
  ));
  return confirm_form($form, $message, Botcha::BOTCHA_ADMIN_PATH, NULL, t('Delete'));
}