You are here

function support_admin_client_delete in Support Ticketing System 6

Confirm before deleting client.

1 string reference to 'support_admin_client_delete'
support_menu in ./support.module
Implementation of hook_menu().

File

./support.admin.inc, line 311
support.admin.inc

Code

function support_admin_client_delete(&$form_state, $client) {
  $form = array();
  $form['clid'] = array(
    '#type' => 'value',
    '#value' => $client->clid,
  );
  return confirm_form($form, t('Are you sure you want to delete the %client client?', array(
    '%client' => check_plain($client->name),
  )), "admin/support/clients/{$client->clid}/edit", t('This action cannot be undone.'), t('Delete client'));
}