You are here

function i18n_string_i18n_string_info_alter in Internationalization 7

Implements hook_i18n_string_info_alter().

Set determined classes to use for the text group.

File

i18n_string/i18n_string.module, line 537
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_i18n_string_info_alter(&$info) {
  foreach (array_keys($info) as $name) {

    // If class is not defined. Classes from other modules, fixed classes and etc.
    if (!isset($info[$name]['class'])) {
      $info[$name]['class'] = variable_get('i18n_string_textgroup_class_' . $name, 'i18n_string_textgroup_default');
    }
  }
}