You are here

function spamicide_delete_confirm in Spamicide 5

Same name and namespace in other branches
  1. 6 spamicide.module \spamicide_delete_confirm()
  2. 7 spamicide.module \spamicide_delete_confirm()

Confirm dialog for disabling/deleting a Spamicide

Parameters

$spamicide_form_id the form_id of the form to delete the Spamicide: from

$delete boolean for also deleting the Spamicide:

1 string reference to 'spamicide_delete_confirm'
spamicide_menu in ./spamicide.module
@file This module provides yet another tool to eliminate spam.

File

./spamicide.module, line 316
This module provides yet another tool to eliminate spam.

Code

function spamicide_delete_confirm($spamicide_form_id, $delete) {
  $form = array();
  $form['spamicide_form_id'] = array(
    '#type' => 'value',
    '#value' => $spamicide_form_id,
  );
  $form['spamicide_delete'] = array(
    '#type' => 'value',
    '#value' => $delete,
  );
  $message = t('Are you sure you want to delete the Spamicide for form_id %form_id?', array(
    '%form_id' => $spamicide_form_id,
  ));
  $yes = t('Delete');
  return confirm_form($form, $message, isset($_GET['destination']) ? $_GET['destination'] : 'admin/settings/spamicide/spamicide_form', '', $yes);
}