You are here

function feedback_entry_form_delete_submit in Feedback 7.2

Button submit function: handle the 'Delete' button on the feedback entry edit form.

1 string reference to 'feedback_entry_form_delete_submit'
feedback_entry_form in ./feedback.admin.inc
Form builder; Feedback entry edit form.

File

./feedback.admin.inc, line 241
Administrative functionality for Feedback module.

Code

function feedback_entry_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $fid = $form['#fid'];
  $form_state['redirect'] = array(
    'admin/reports/feedback/' . $fid . '/delete',
    array(
      'query' => $destination,
    ),
  );
}