function forena_render_report in Forena Reports 6
Same name and namespace in other branches
- 8 forena.module \forena_render_report()
- 6.2 forena.module \forena_render_report()
- 7 forena.module \forena_render_report()
- 7.2 forena.module \forena_render_report()
- 7.3 forena.module \forena_render_report()
- 7.4 forena.module \forena_render_report()
Render report with some data
Parameters
unknown_type $report:
unknown_type $format:
unknown_type $data:
Return value
unknown
1 call to forena_render_report()
- forena_data_block_form_submit in ./
forena.admin.inc - The Preview submit handler for forena_add_block_form Renders datablock into a report
File
- ./
forena.module, line 512
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);
//If a format was requested render a custom non-drupal document
if ($format) {
$output = forena_generate_doc($format, $output, $options, $print);
return $output;
}
else {
return $output;
}
}