function forena_my_reports_block in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.common.inc \forena_my_reports_block()
- 6 forena.common.inc \forena_my_reports_block()
- 7.5 forena.common.inc \forena_my_reports_block()
- 7 forena.common.inc \forena_my_reports_block()
- 7.2 forena.common.inc \forena_my_reports_block()
- 7.3 forena.common.inc \forena_my_reports_block()
- 7.4 forena.common.inc \forena_my_reports_block()
Render the my reports category block
File
- ./
forena.common.inc, line 132 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_my_reports_block() {
$reports = forena_get_user_reports();
if (!$reports) {
return '';
}
$output = '<ul>';
foreach ($reports as $category => $report) {
// @FIXME Provide a valid URL, generated from a route name, as the second argument to l(). See https://www.drupal.org/node/2346779 for more information.
// $output .= '<li>' . l($category, 'forena', array('fragment' => urlencode($category))) . '</li>';
}
$output .= '</ul>';
return $output;
}