function themekey_admin_delete_rule_confirm in ThemeKey 6.4
Same name and namespace in other branches
- 6.2 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 6.3 themekey_admin.inc \themekey_admin_delete_rule_confirm()
- 7.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 754
Code
function themekey_admin_delete_rule_confirm(&$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 ThemeKey rule %title?', array(
'%title' => $title,
)), 'admin/settings/themekey/properties', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}