function services_admin_keys_delete_confirm in Services 6
Same name and namespace in other branches
- 5 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 110 - @author Services Dev Team
Code
function services_admin_keys_delete_confirm(&$form_state, $kid = 0) {
$key = db_fetch_object(db_query("SELECT * FROM {services_keys} WHERE kid = '%s'", $kid));
$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'));
}