You are here

function forena_get_user_reports in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.common.inc \forena_get_user_reports()
  2. 6 forena.common.inc \forena_get_user_reports()
  3. 7.5 forena.common.inc \forena_get_user_reports()
  4. 7 forena.common.inc \forena_get_user_reports()
  5. 7.2 forena.common.inc \forena_get_user_reports()
  6. 7.3 forena.common.inc \forena_get_user_reports()
  7. 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;
}