You are here

function globallink_translation_taxonomy_options in GlobalLink Connect for Drupal 7.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 globallink_translation_taxonomy_options()
globallink_translations_settings_taxonomy in ./globallink_settings.inc
Taxonomy create form.

File

./globallink_settings.inc, line 1222

Code

function globallink_translation_taxonomy_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 globallink_translation_taxonomy_options_list($replacements, $options);
}