function services_keyauth_admin_keys_delete_confirm in Services 7
Same name and namespace in other branches
- 6.2 auth/services_keyauth/services_keyauth.admin.inc \services_keyauth_admin_keys_delete_confirm()
1 string reference to 'services_keyauth_admin_keys_delete_confirm'
- services_keyauth_menu in auth/
services_keyauth/ services_keyauth.module - Implements hook_menu().
File
- auth/
services_keyauth/ services_keyauth.admin.inc, line 158 - Generate security keys.
Code
function services_keyauth_admin_keys_delete_confirm() {
$kid = arg(4);
$key = db_query("SELECT * FROM {services_keys} WHERE kid = :kid", array(
':kid' => $kid,
))
->fetchObject();
$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'));
}