You are here

function forena_report_title_callback in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 forena.module \forena_report_title_callback()
  2. 7.5 forena.module \forena_report_title_callback()
  3. 7.3 forena.module \forena_report_title_callback()

Callback for setting international titles

Parameters

$report_name string name of report:

$use_menu_title boolean indicate wether to use menu title attribute.:

1 string reference to 'forena_report_title_callback'
FrxMenu::addMenuItems in ./FrxMenu.inc
Add menu items to the items array

File

./forena.module, line 1210

Code

function forena_report_title_callback($report_name, $use_menu_title = TRUE) {
  $title = '';
  $info = Frx::File()
    ->getReportCacheInfo($report_name);
  if ($info) {
    $title = $use_menu_title && $info && isset($info->cache['menu']['title']) ? $info->cache['menu']['title'] : $info->cache['title'];
  }
  return $title;
}