You are here

function themekey_redirect_admin_delete_rule_confirm in ThemeKey 7.3

Menu callback -- ask for confirmation of ThemeKey rule deletion

1 string reference to 'themekey_redirect_admin_delete_rule_confirm'
themekey_redirect_menu in themekey_redirect/themekey_redirect.module
Implements hook_menu().

File

themekey_redirect/themekey_redirect_admin.inc, line 89

Code

function themekey_redirect_admin_delete_rule_confirm($form, &$form_state, $arg, $themekey_property_id) {
  $form['themekey_property_id'] = array(
    '#type' => 'value',
    '#value' => $themekey_property_id,
  );
  $title = themekey_redirect_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/redirects', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}