function forena_report_edit_template_submit in Forena Reports 8
Same name and namespace in other branches
- 7.5 forena.report.inc \forena_report_edit_template_submit()
- 7.4 forena.report.inc \forena_report_edit_template_submit()
Edit an existing id based on the template.
_state
Parameters
unknown $form:
1 string reference to 'forena_report_edit_template_submit'
- forena_report_data_block_form in ./
forena.report.inc - A form to preview and add data blocks to an existing report
File
- ./
forena.report.inc, line 743
Code
function forena_report_edit_template_submit($form, &$form_state) {
extract($form_state['values']);
$r = Frx::Editor($report_name);
$parms = $form_state['storage']['parms'];
$config = array_merge($form_state['storage']['config'], $config);
$r = Frx::Editor($report_name);
$r
->setEditorParms($parms);
$r
->applyTemplate($id, $template_class, $config);
$r
->update();
$form_state['redirect'] = array(
"reports/{$report_name}/edit",
array(
'query' => Frx::parms(),
),
);
}