You are here

function jammer_generic_confirm_delete in Jammer 7

Same name and namespace in other branches
  1. 6 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
Implements hook_menu().

File

./jammer_generic.module, line 126
Remove configured form elements from forms.

Code

function jammer_generic_confirm_delete($form, &$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/config/user-interface/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/config/user-interface/jammer_generic'),
  )), t('Delete'), t('Cancel'));
}