You are here

function botcha_recipebook_delete_form_submit in BOTCHA Spam Prevention 7.2

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

Submit handler for botcha_recipebook_delete_form().

File

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

Code

function botcha_recipebook_delete_form_submit($form, &$form_state) {
  $form_state['redirect'] = Botcha::BOTCHA_ADMIN_PATH . '/recipebook';

  // Remove recipe book.
  $form['#recipebook']
    ->delete();
}