You are here

function forena_report_save_cancel in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 forena.report.inc \forena_report_save_cancel()
  2. 7.4 forena.report.inc \forena_report_save_cancel()
1 string reference to 'forena_report_save_cancel'
forena_report_save_form in ./forena.report.inc
Creates a simple save button to be used with other forms

File

./forena.report.inc, line 826

Code

function forena_report_save_cancel($form, &$form_state) {
  extract($form_state['values']);
  Frx::Editor($report_name)
    ->cancel();
  $form_state['redirect'] = array(
    "reports/{$report_name}",
    array(
      'query' => Frx::parms(),
    ),
  );
}