You are here

function support_pm_admin_project_form_delete_submit in Support Ticketing System 7

Button submit function: handle the 'Delete' button on the project form.

1 string reference to 'support_pm_admin_project_form_delete_submit'
support_pm_admin_project_form in support_pm/support_pm.admin.inc

File

support_pm/support_pm.admin.inc, line 644

Code

function support_pm_admin_project_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $project = $form['#project'];
  $form_state['redirect'] = array(
    'admin/support/project/' . $project->projid . '/delete',
    array(
      'query' => $destination,
    ),
  );
}