function _biblio_localize_fields in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \_biblio_localize_fields()
- 7 biblio.module \_biblio_localize_fields()
- 7.2 biblio.module \_biblio_localize_fields()
Translate field titles and hints through the interface translation system, if the i18nstrings module is enabled.
2 calls to _biblio_localize_fields()
- biblio_form in ./
biblio.module - Implementation of hook_form().
- theme_biblio_tabular in ./
biblio_theme.inc
File
- ./
biblio.module, line 62
Code
function _biblio_localize_fields(&$fields) {
if (module_exists('i18nstrings')) {
foreach ($fields as $key => $row) {
$fields[$key]['title'] = tt("biblio:field:{$row['ftdid']}:title", $fields[$key]['title']);
$fields[$key]['hint'] = tt("biblio:field:{$row['ftdid']}:hint", $fields[$key]['hint']);
}
}
}