function getPrimaryTLStdFilter($module) { $Options = array(); if (vtlib_isModuleActive($module)) { $result = getR4UStdCriteriaByModule($module); if (isset($result)) { foreach ($result as $key => $value) { $fieldid = ""; $Options[vtranslate($module, $module)][] = array("value" => $key . "{$fieldid}", 'text' => vtranslate($value, $module)); } } } return $Options; }
function getPrimaryTLStdFilter($module, $ogReport = "") { global $app_list_strings; if ($ogReport == "") { if (ITS4YouReports::isStoredITS4YouReport() === true) { $ogReport = ITS4YouReports::getStoredITS4YouReport(); } else { $ogReport = new ITS4YouReports(); } } global $current_language; $Options = array(); if (vtlib_isModuleActive($module)) { /* $ogReport->oCustomView = new CustomView(); $result = $ogReport->oCustomView->getStdCriteriaByModule($module); */ $result = getR4UStdCriteriaByModule($module); //$mod_strings = return_module_language($current_language, $module); if (isset($result)) { foreach ($result as $key => $value) { /* $fieldid = get_field_id($key) */ $fieldid = ""; $Options[vtranslate($module, $module)][] = array("value" => $key . "{$fieldid}", 'text' => $value . " - " . vtranslate($value, $secmodule[$i])); } } } return $Options; }