You are here

function js_injector_delete_confirm in JS injector 6

Same name and namespace in other branches
  1. 6.2 js_injector.admin.inc \js_injector_delete_confirm()
  2. 7 js_injector.admin.inc \js_injector_delete_confirm()

Menu callback -- ask for confirmation of rule deletion.

1 string reference to 'js_injector_delete_confirm'
js_injector_menu in ./js_injector.module
Implementation of hook_menu(). Defines menu callbacks for js Injector's configuration pages.

File

./js_injector.admin.inc, line 242

Code

function js_injector_delete_confirm(&$form_state, $crid) {
  $form['crid'] = array(
    '#type' => 'value',
    '#value' => $crid,
  );
  $rule = _js_injector_load_rule($crid);
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $rule['title'],
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/settings/js_injector', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}