function forena_user_reports in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena.module \forena_user_reports()
- 6.2 forena.module \forena_user_reports()
- 6 forena.module \forena_user_reports()
- 7 forena.module \forena_user_reports()
- 7.2 forena.module \forena_user_reports()
- 7.3 forena.module \forena_user_reports()
- 7.4 forena.module \forena_user_reports()
1 call to forena_user_reports()
- FrxMyReports::render in src/
Renderer/ FrxMyReports.php - Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
1 string reference to 'forena_user_reports'
- forena_menu in ./
forena.module - Implementation of hook_menu.
File
- ./
forena.module, line 957
Code
function forena_user_reports($category = '') {
require_once 'forena.common.inc';
$output = '';
$reports = forena_get_user_reports($category);
if (!$reports) {
$output = 'No Reports Found';
}
$links = '';
foreach ($reports as $category => $reports) {
$links .= '<li><a href="#' . urlencode($category) . '">' . $category . '</a></li> ';
$output .= '<h3 id="' . urlencode($category) . '">' . $category . '</h3>';
$output .= '<ul>';
foreach ($reports as $r) {
$output .= '<li>' . l($r['title'], 'reports/' . str_replace('/', '.', $r['report_name'])) . '</li>';
}
$output .= '</ul>';
}
return $output;
}