function lingotek_setup_allowed_translation_formats in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.setup.inc \lingotek_setup_allowed_translation_formats()
- 7.6 lingotek.setup.inc \lingotek_setup_allowed_translation_formats()
Update the formats allowed to be used for saving blocks and strings, etc. to include HTML
Currently, Lingotek will attempt to translate all filter formats
1 call to lingotek_setup_allowed_translation_formats()
File
- ./
lingotek.setup.inc, line 921
Code
function lingotek_setup_allowed_translation_formats() {
$filter_formats = filter_formats();
$lingotek_supported_formats = array();
foreach ($filter_formats as $key => $format) {
$lingotek_supported_formats[$key] = $format->format;
}
variable_set('i18n_string_allowed_formats', $lingotek_supported_formats);
}