You are here

function themekey_admin_delete_rule_confirm in ThemeKey 7

Same name and namespace in other branches
  1. 6.4 themekey_admin.inc \themekey_admin_delete_rule_confirm()
  2. 6.2 themekey_admin.inc \themekey_admin_delete_rule_confirm()
  3. 6.3 themekey_admin.inc \themekey_admin_delete_rule_confirm()
  4. 7.3 themekey_admin.inc \themekey_admin_delete_rule_confirm()
  5. 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 780

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/properties', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}