diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:44:18 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:44:18 +0000 |
commit | 3205a26755ecf71b4d8503359c2ff1910254f322 (patch) | |
tree | 347bdfc3befa2879e8a62b6eed205dc911b9259c /modules/translation | |
parent | a2232c40eed8afee0a9b38b587e4895cc11c26da (diff) | |
download | brdo-3205a26755ecf71b4d8503359c2ff1910254f322.tar.gz brdo-3205a26755ecf71b4d8503359c2ff1910254f322.tar.bz2 |
#282191 follow-up by plach: Remove ambitious parts of translatable fields UI from core that are no longer relevant, given what made it into Drupal 7.
Diffstat (limited to 'modules/translation')
-rw-r--r-- | modules/translation/translation.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index b1348c948..531555912 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -182,7 +182,7 @@ function translation_form_alter(&$form, &$form_state, $form_id) { function translation_node_view($node, $view_mode) { if (isset($node->tnid) && $translations = translation_node_get_translations($node->tnid)) { $path = 'node/' . $node->nid; - $links = language_negotiation_get_switch_links(LANGUAGE_TYPE_CONTENT, $path); + $links = language_negotiation_get_switch_links(LANGUAGE_TYPE_INTERFACE, $path); if (is_object($links)) { $links = $links->links; // Do not show link to the same node. @@ -440,7 +440,7 @@ function translation_path_get_translations($path) { * Replaces links with pointers to translated versions of the content. */ function translation_language_switch_links_alter(array &$links, $type, $path) { - if ($type == LANGUAGE_TYPE_CONTENT && $paths = translation_path_get_translations($path)) { + if ($type == LANGUAGE_TYPE_INTERFACE && $paths = translation_path_get_translations($path)) { foreach ($links as $langcode => $link) { if (isset($paths[$langcode])) { // Translation in a different node. |