function i18n_string_i18n_object_info_alter in Internationalization 7
Implements hook_i18n_object_info_alter().
Set a different default object wrapper for objects that have string translation.
File
- i18n_string/
i18n_string.module, line 867 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_i18n_object_info_alter(&$object_info) {
foreach ($object_info as $type => &$info) {
if (!empty($info['string translation']) && (empty($info['class']) || $info['class'] == 'i18n_object_wrapper')) {
$info['class'] = 'i18n_string_object_wrapper';
}
}
}