public function FrxDrupalApplication::theme in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxDrupalApplication.inc \FrxDrupalApplication::theme()
- 7.3 FrxDrupalApplication.inc \FrxDrupalApplication::theme()
- 7.4 FrxDrupalApplication.inc \FrxDrupalApplication::theme()
Theme the output of a css Enter description here ...
Parameters
unknown_type $output:
unknown_type $doc_type:
Overrides FrxHostApplication::theme
File
- ./
FrxDrupalApplication.inc, line 51 - HostApp.inc Defines all the interface points between the host application and Forena. Each of these methods must be specified in order for Forena to function properly. The base class here is drupal, so those
Class
Code
public function theme($r, $title, $doc_type) {
$output = $r->html;
$output = check_markup($output, variable_get('forena_input_format', filter_default_format()));
if (!$doc_type || ($doc_type = 'embed')) {
// Set the title and return the output
$f = drupal_get_form('forena_parameter_form', $r->rpt_xml
->asXML(), $r->blocks_loaded);
if ($f) {
$output = drupal_render($f) . $output;
}
drupal_set_title(filter_xss($title));
$output = '<div class="forena-report">' . $output . '</div>';
}
else {
//Build the doucment and theme the output
print $output;
}
return $output;
}