function forena_edit_delete_submit in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena_ui/forena.admin.inc \forena_edit_delete_submit()
- 6.2 forena.admin.inc \forena_edit_delete_submit()
- 6 forena.admin.inc \forena_edit_delete_submit()
- 7 forena.admin.inc \forena_edit_delete_submit()
- 7.2 forena.admin.inc \forena_edit_delete_submit()
- 7.3 forena.admin.inc \forena_edit_delete_submit()
- 7.4 forena.admin.inc \forena_edit_delete_submit()
Handle delete buttons from edit forms.
Return value
unknown_type
File
- ./
forena.admin.inc, line 284
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,
),
);
}