function client_delete_confirm in Web Service Clients 6.2
Same name and namespace in other branches
- 7 clients.module \client_delete_confirm()
- 7.2 clients.connection.admin.inc \client_delete_confirm()
Form builder for confirmation of deletion of a connection.
1 string reference to 'client_delete_confirm'
- clients_menu in ./
clients.module - Implementation of hook_menu().
File
- ./
clients.module, line 220 - Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.
Code
function client_delete_confirm(&$form_state, $type, $service) {
// Store values for the submit handler.
$form['type'] = array(
'#type' => 'value',
'#value' => $type,
);
$form['cid'] = array(
'#type' => 'value',
'#value' => $service->cid,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $service->name,
);
return confirm_form($form, t('Are you sure you want to delete !type %title?', array(
'!type' => $type,
'%title' => $service->name,
)), isset($_GET['destination']) ? $_GET['destination'] : "admin/build/clients/{$type}s/{$service->cid}", t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}