You are here

function key_config_delete_confirm in Key 7.2

Same name and namespace in other branches
  1. 7.3 includes/key.admin.inc \key_config_delete_confirm()

Menu callback to delete a key configuration.

1 string reference to 'key_config_delete_confirm'
key_menu in ./key.module
Implements hook_menu().

File

includes/key.admin.inc, line 301
Administrative functionality for managing key configurations.

Code

function key_config_delete_confirm($form, &$form_state, $config) {
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $config['name'],
  );
  $form['label'] = array(
    '#type' => 'value',
    '#value' => $config['label'],
  );
  $message = t('Are you sure you want to delete the key %label?', array(
    '%label' => $config['label'],
  ));
  $caption = '<p>' . t('This action cannot be undone.') . '</p>';
  return confirm_form($form, filter_xss_admin($message), KEY_MENU_PATH, filter_xss_admin($caption), t('Delete'));
}