You are here

function services_admin_keys_delete_confirm in Services 5

Same name and namespace in other branches
  1. 6 services_admin_keys.inc \services_admin_keys_delete_confirm()
1 string reference to 'services_admin_keys_delete_confirm'
services_menu in ./services.module
Implementation of hook_menu.

File

./services_admin_keys.inc, line 106
The file contains code which is used to create the keys interface

Code

function services_admin_keys_delete_confirm($key) {
  $form['kid'] = array(
    '#type' => 'value',
    '#value' => $key->kid,
  );
  $message = t('Are you sure you want to delete the key %key?', array(
    '%key' => $key->kid,
  ));
  $caption = '';
  $caption .= '<p>' . t('This action cannot be undone.') . '</p>';
  return confirm_form($form, $message, 'admin/build/services/keys', $caption, t('Delete'));
}