You are here

function forena_delete_form_submit in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 forena.admin.inc \forena_delete_form_submit()
  2. 7 forena.admin.inc \forena_delete_form_submit()
  3. 7.2 forena.admin.inc \forena_delete_form_submit()
  4. 7.3 forena.admin.inc \forena_delete_form_submit()

File

./forena.admin.inc, line 1126

Code

function forena_delete_form_submit($form, &$form_state) {
  $report_name = $form_state['values']['report_name'];
  drupal_set_message('Deleted ' . $report_name);
  forena_delete_report($report_name);
  $form_state['redirect'] = 'forena';
}