function jammer_generic_confirm_delete in Jammer 6
Same name and namespace in other branches
- 7 jammer_generic.module \jammer_generic_confirm_delete()
Returns a confirmation page for deleting a jammed element.
Return value
array
1 string reference to 'jammer_generic_confirm_delete'
- jammer_generic_menu in ./
jammer_generic.module - Implementation of hook_menu().
File
- ./
jammer_generic.module, line 123 - Remove configured form elements from forms.
Code
function jammer_generic_confirm_delete(&$form_state, $key) {
$confirm_form['key'] = array(
'#type' => 'value',
'#value' => $key,
);
return confirm_form($confirm_form, t('Are you sure you want to un-jam this form element?'), 'admin/settings/jammer/generic', t('Deleting this setting will cause previously hidden form elements to display again. To review the settings on this jammed form element, please visit <a href="@content">Generic Jammer administration</a> first. This action cannot be undone.', array(
'@content' => url('admin/settings/jammer/generic'),
)), t('Delete'), t('Cancel'));
}