You are here

function css_injector_delete_confirm in CSS Injector 6

Same name and namespace in other branches
  1. 7.2 css_injector.admin.inc \css_injector_delete_confirm()
  2. 7 css_injector.admin.inc \css_injector_delete_confirm()

Menu callback -- ask for confirmation of rule deletion.

1 string reference to 'css_injector_delete_confirm'
css_injector_menu in ./css_injector.module
Implementation of hook_menu(). Defines menu callbacks for CSS Injector's configuration pages.

File

./css_injector.admin.inc, line 235

Code

function css_injector_delete_confirm(&$form_state, $crid) {
  $form['crid'] = array(
    '#type' => 'value',
    '#value' => $crid,
  );
  $rule = _css_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/css_injector', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}