diff --git a/active_translation.module b/active_translation.module index d3ee2d2..0337959 100644 --- a/active_translation.module +++ b/active_translation.module @@ -83,7 +83,7 @@ function active_translation_nodeapi_view(&$node, $teaser, $page) { else { $message = t("This content has not been translated to %user-language but a %node-langauge version is available here.", array('%user-language' => $languages[$language->language], '%node-langauge' => $languages[$best_tran->language], '!link' => url('node/'. $best_tran->nid))); } - $node->content['language'] = array( + $node->content['active_translation'] = array( '#type' => 'item', '#title' => t('Translation Note'), '#value' => $message, @@ -94,6 +94,19 @@ function active_translation_nodeapi_view(&$node, $teaser, $page) { } } +/** + * Implementation of hook_content_extra_fields. + */ +function active_translation_content_extra_fields($type_name) { + $extra['active_translation'] = array( + 'label' => t('Active translation'), + 'description' => t('Active translation message.'), + 'weight' => 30, + ); + + return $extra; +} + function theme_active_translation_node_message($form_element) { $output = '
'; $output .= ''. $form_element['#title'] .': ';