Commit b63e4cfd authored by metzlerd's avatar metzlerd
Browse files

Adding new myreports renderer to render columns from particular

categories. 
parent 38feede6
......@@ -1090,11 +1090,17 @@ function forena_forena_controls() {
'file' => 'renderers/FrxXML.inc',
'class' => 'FrxXML',
);
$controls[] = array(
'file' => 'renderers/FrxInclude.inc',
'class' => 'FrxInclude',
);
$controls[] = array(
'file' => 'renderers/FrxMyReports.inc',
'class' => 'FrxMyReports',
);
$controls[] = array(
'file' => 'renderers/FrxParameterForm.inc',
'class' => 'FrxParameterForm',
......
<?php
class FrxMyReports extends FrxRenderer {
/*
* This custom renderer uses the existing forena reports module
*/
public function render() {
$variables = $this->replacedAttributes();
$category = isset($variables['category']) ? $variables['category']: '';
if (user_access('list reports')) {
return forena_user_reports($category);
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment