You are here

function forena_report_save_submit in Forena Reports 7.4

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

File

./forena.report.inc, line 244

Code

function forena_report_save_submit($form, &$form_state) {
  $report_name = $form_state['values']['report_name'];
  $r = Frx::Editor($report_name);
  $r
    ->save();
  $r_link = $r->report_link;
  $form_state['redirect'] = array(
    "{$r_link}",
    array(
      'query' => Frx::parms(),
    ),
  );
}