You are here

function i18ncck_content_allowed_values_alter in Internationalization 6

Translate allowed values lists.

File

i18ncck/i18ncck.module, line 85
Internationalization (i18n) submodule: CCK.

Code

function i18ncck_content_allowed_values_alter(&$allowed_values, $field) {
  foreach ($allowed_values as $key => $value) {
    $allowed_values[$key] = i18nstrings('cck:field:' . $field['field_name'] . ':option_' . i18ncck_get_safe_value($key), $value);
  }
}