function forena_report_title_callback in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena.module \forena_report_title_callback()
- 7.3 forena.module \forena_report_title_callback()
- 7.4 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'
- Menu::addMenuItems in src/
Menu.php - Add menu items to the items array
File
- ./
forena.module, line 1149
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;
}