function forena_get_user_reports in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.common.inc \forena_get_user_reports()
- 6 forena.common.inc \forena_get_user_reports()
- 7.5 forena.common.inc \forena_get_user_reports()
- 7 forena.common.inc \forena_get_user_reports()
- 7.2 forena.common.inc \forena_get_user_reports()
- 7.3 forena.common.inc \forena_get_user_reports()
- 7.4 forena.common.inc \forena_get_user_reports()
Get
Parameters
array $category: Array of categories to include
Return value
array
2 calls to forena_get_user_reports()
- forena_my_reports_block in ./
forena.common.inc - Render the my reports category block
- forena_user_reports in ./
forena.module
File
- ./
forena.common.inc, line 122 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_get_user_reports($category = array()) {
if (!$category) {
$category = array();
}
$reports = \Drupal\forena\File\ReportFileSystem::instance()
->reportsByCategory((array) $category);
return $reports;
}