function i18n_string_element_info_alter in Internationalization 7
Implements hook_element_info_alter().
We need to do this on the element info level as wysiwyg also does so and form API (incorrectly) does not merge in the defaults for values that are arrays.
File
- i18n_string/
i18n_string.module, line 277 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_element_info_alter(&$types) {
$types['text_format']['#pre_render'][] = 'i18n_string_pre_render_text_format';
}