You are here

function forena_edit_delete_submit in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.admin.inc \forena_edit_delete_submit()
  2. 6 forena.admin.inc \forena_edit_delete_submit()
  3. 7.5 forena.admin.inc \forena_edit_delete_submit()
  4. 7 forena.admin.inc \forena_edit_delete_submit()
  5. 7.2 forena.admin.inc \forena_edit_delete_submit()
  6. 7.3 forena.admin.inc \forena_edit_delete_submit()
  7. 7.4 forena.admin.inc \forena_edit_delete_submit()

Handle delete buttons from edit forms.

Return value

unknown_type

File

forena_ui/forena.admin.inc, line 269

Code

function forena_edit_delete_submit($form, &$form_state) {
  $link = 'reports/' . $form_state['values']['name_in'];
  $destination = '';
  if (isset($_REQUEST['destination'])) {
    $destination = drupal_get_destination();
    unset($_REQUEST['destination']);
  }
  $form_state['redirect'] = array(
    'path' => $link . '/delete',
    'query' => array(
      'destination' => $destination,
    ),
  );
}