function forena_report_preview in Forena Reports 8
Same name and namespace in other branches
- 7.5 forena.report.inc \forena_report_preview()
- 7.4 forena.report.inc \forena_report_preview()
File
- ./
forena.report.inc, line 251
Code
function forena_report_preview($report_name) {
$r = Frx::Editor($report_name, TRUE);
// @FIXME: drupal_set_title() has been removed in Drupal 8. Setting the title is now done in different ways depending on the context. For more information, see https://www.drupal.org/node/2067859
// drupal_set_title($r->title);
$content['save'] = drupal_get_form('forena_report_save_form', $report_name);
$content['preview'] = $r
->preview();
return $content;
}