You are here

function biblio_form_delete_submit in Bibliography Module 7.2

Redirects the user to biblio/$bid/delete

_state

Parameters

type $form:

1 string reference to 'biblio_form_delete_submit'
biblio_form in ./biblio.module
Displays the Add/Edit form for a biblio entity

File

./biblio.module, line 3280

Code

function biblio_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $biblio = $form_state['biblio'];
  $form_state['redirect'] = array(
    'biblio/' . $biblio->bid . '/delete',
    array(
      'query' => $destination,
    ),
  );
}