You are here

function forena_edit_delete_submit in Forena Reports 6.2

Same name and namespace in other branches
  1. 8 forena_ui/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

1 string reference to 'forena_edit_delete_submit'
forena_layout_form in ./forena.admin.inc
Form function for the edit report form

File

./forena.admin.inc, line 886

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']);
  }
  unset($form_state['storage']);
  $form_state['redirect'] = array(
    'path' => $link . '/delete',
    'query' => array(
      'destination' => $destination,
    ),
  );
}