function forena_report_title_callback in Forena Reports 8
Same name and namespace in other branches
- 7.5 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.:
Return value
string title of report.
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 262
Code
function forena_report_title_callback($report_name, $use_menu_title = TRUE) {
$title = '';
$info = FrxAPI::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;
}