You are here

function forena_report_preview in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 forena.report.inc \forena_report_preview()
  2. 7.5 forena.report.inc \forena_report_preview()
1 string reference to 'forena_report_preview'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.report.inc, line 252

Code

function forena_report_preview($report_name) {
  $r = Frx::Editor($report_name, TRUE);
  drupal_set_title($r->title);
  $content['save'] = drupal_get_form('forena_report_save_form', $report_name);
  $content['preview'] = $r
    ->preview();
  return $content;
}