You are here

function js_injector_delete_confirm in JS injector 7

Same name and namespace in other branches
  1. 6.2 js_injector.admin.inc \js_injector_delete_confirm()
  2. 6 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
Implements hook_menu(). Defines menu callbacks for JS Injector's configuration pages.

File

./js_injector.admin.inc, line 244
js_injector.admin.inc Administrative interface for JS Injector.

Code

function js_injector_delete_confirm($form, &$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/config/development/js-injector', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}