You are here

function forena_render_report in Forena Reports 7.3

Same name and namespace in other branches
  1. 8 forena.module \forena_render_report()
  2. 6.2 forena.module \forena_render_report()
  3. 6 forena.module \forena_render_report()
  4. 7 forena.module \forena_render_report()
  5. 7.2 forena.module \forena_render_report()
  6. 7.4 forena.module \forena_render_report()

Render report with some data

Parameters

string $report:

string $format:

mixed $data:

Return value

unknown

1 call to forena_render_report()
forena_add_data_block_form in ./forena.admin.inc

File

./forena.module, line 935

Code

function forena_render_report($report, $format = '', $data = '', $options = array(), $print = TRUE) {
  require_once 'forena.common.inc';
  $o = forena_report_object($report, $data);
  $output = $o
    ->render($format, $print);

  //If a format was requested render a custom non-drupal document
  if ($format && $format != 'web') {
    $output = FrxReportGenerator::instance()
      ->generate_doc($format, $output, $options, $print);
  }
  return $output;
}