function support_client_delete in Support Ticketing System 6
Delete a client
Parameters
$client: Client object, needs only to define ->clid.
1 call to support_client_delete()
- support_admin_client_delete_submit in ./
support.admin.inc - Delete client.
File
- ./
support.module, line 3688 - support.module
Code
function support_client_delete($client) {
drupal_alter('support_client_delete', $client);
if (!empty($client->clid)) {
$name = db_result(db_query('SELECT name FROM {support_client} WHERE clid = %d', $client->clid));
db_query('DELETE FROM {support_client} WHERE clid = %d', $client->clid);
drupal_set_message(t('Client %client deleted.', array(
'%client' => $name,
)));
module_invoke_all('support_client_deleted', $client);
}
}