function themekey_admin_delete_rule_confirm in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 6.2 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 6.3 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 7 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 7.2 themekey_admin.inc \themekey_admin_delete_rule_confirm()
Menu callback -- ask for confirmation of ThemeKey rule deletion
1 string reference to 'themekey_admin_delete_rule_confirm'
- themekey_menu in ./
themekey.module - Implements hook_menu().
File
- ./
themekey_admin.inc, line 987
Code
function themekey_admin_delete_rule_confirm($form, &$form_state, $arg, $themekey_property_id) {
$form['themekey_property_id'] = array(
'#type' => 'value',
'#value' => $themekey_property_id,
);
$title = themekey_format_rule_as_string($themekey_property_id);
return confirm_form($form, t('Are you sure you want to delete the ThemeKey rule, %title?', array(
'%title' => $title,
)), 'admin/config/user-interface/themekey/rules', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}