function spamicide_delete_confirm in Spamicide 6
Same name and namespace in other branches
- 5 spamicide.module \spamicide_delete_confirm()
- 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 - Implementation of hook_menu().
File
- ./
spamicide.module, line 265 - This module provides yet another tool to eliminate spam.
Code
function spamicide_delete_confirm(&$form_state, $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);
}