You are here

function i18n_translation_options in Internationalization 7

Get list of translation modes

Parameters

$container_type: Object type for the container

$options: Options to include. If none, defaults for container type will be returned.

1 call to i18n_translation_options()
i18n_translation_mode_element in i18n_translation/i18n_translation.module
Get form element for translation mode and language

File

i18n_translation/i18n_translation.module, line 153
Internationalization (i18n) module - Entity translations

Code

function i18n_translation_options($container_type, $options = NULL) {

  // Get names and translation options for container object and items
  $container_info = i18n_object_info($container_type, 'translation container');
  $replacements = array(
    '@container_name' => $container_info['name'],
    '@item_name_multiple' => $container_info['item name'],
    '@item_name_multiple_capitalized' => ucfirst($container_info['item name']),
  );
  $options = $options ? $options : $container_info['options'];
  return i18n_translation_options_list($replacements, $options);
}