function webform_tt in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.module \webform_tt()
- 7.3 webform.module \webform_tt()
Wrapper function for i18n_string() if i18nstrings enabled.
1 call to webform_tt()
- webform_configure_form in includes/
webform.pages.inc - Main configuration form for editing a webform node.
File
- ./
webform.module, line 5300 - This module provides a simple way to create forms and questionnaires.
Code
function webform_tt($name, $string, $langcode = NULL, $update = FALSE) {
if (function_exists('i18n_string')) {
$options = array(
'langcode' => $langcode,
'update' => $update,
);
return i18n_string($name, $string, $options);
}
else {
return $string;
}
}