function css_injector_delete_confirm in CSS Injector 7
Same name and namespace in other branches
- 6 css_injector.admin.inc \css_injector_delete_confirm()
- 7.2 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 - Implements hook_menu(). Defines menu callbacks for CSS Injector's configuration pages.
File
- ./
css_injector.admin.inc, line 316 - css_injector.admin.inc Administrative interface for CSS Injector.
Code
function css_injector_delete_confirm($form, &$form_state, $crid) {
_css_injector_update_breadcrumb();
$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'));
}