You are here

function css_injector_delete_confirm in CSS Injector 7.2

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

File

./css_injector.admin.inc, line 244
css_injector.admin.inc Administrative interface for CSS Injector.

Code

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