You are here

function language_hierarchy_i18n_string_info_alter in Language Hierarchy 7

Implements hook_i18n_string_info_alter().

File

./language_hierarchy.module, line 229

Code

function language_hierarchy_i18n_string_info_alter(&$object_info) {
  foreach ($object_info as $type => &$info) {
    if (!isset($info['class']) || $info['class'] == 'i18n_string_textgroup_default') {
      $info['class'] = 'language_hierarchy_i18n_string_textgroup_default';
    }
    elseif ($info['class'] == 'i18n_string_textgroup_cached') {
      $info['class'] = 'language_hierarchy_i18n_string_textgroup_cached';
    }
  }
}