function forena_edit_delete_submit in Forena Reports 7
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.5 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
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 1182
Code
function forena_edit_delete_submit($form, &$form_state) {
$desc = forena_report_desc();
$link = $desc['link'];
$report_name = $form_state['values']['report_name'];
$destination = '';
if (isset($_REQUEST['destination'])) {
$destination = drupal_get_destination();
unset($_REQUEST['destination']);
}
$form_state['redirect'] = array(
$link . '/delete',
$destination,
);
}