You are here

function key_ui_key_config_delete_confirm in Key 7

Menu callback to delete a key configuration.

1 string reference to 'key_ui_key_config_delete_confirm'
key_ui_menu in modules/key_ui/key_ui.module
Implements hook_menu().

File

modules/key_ui/includes/key_ui.admin.inc, line 278
Administrative functionality for managing key configurations.

Code

function key_ui_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'));
}