static function getModuleFieldTypeOfDataInfos($tables, $tabid = '') { $result = array(); if (!empty($tabid)) { $module = Vtiger_Functions::getModuleName($tabid); $fieldInfos = Vtiger_Functions::getModuleFieldInfos($tabid); foreach ($fieldInfos as $name => $field) { if (($field['displaytype'] == '1' || $field['displaytype'] == '3') && ($field['presence'] == '0' || $field['presence'] == '2')) { $label = Vtiger_Functions::getTranslatedString($field['fieldlabel'], $module); $result[$name] = array($label => $field['typeofdata']); } } } else { throw new Exception('Field lookup by table no longer supported'); } return $result; }
function getTranslatedString($str, $module = 'Vtiger') { return Vtiger_Functions::getTranslatedString($str, $module); }