You are here

function lingotek_setup_allowed_translation_formats in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_setup_allowed_translation_formats()
  2. 7.5 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()
lingotek_setup_additional_translation_settings_form_submit in ./lingotek.setup.inc

File

./lingotek.setup.inc, line 859

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);
}