Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/i18n/i18n_node/i18n_node.module
257 257
/**
258 258
 * Implements hook_node_view()
259 259
 */
260
function i18n_node_node_view($node) {
260
function i18n_node_node_view($node, $view_mode, $langcode) {
261 261
  if (i18n_node_type_enabled($node)) {
262
    $node->content['language'] = array(
263
      '#type' => 'item',
264
      '#title' => t('Language'),
265
      '#markup' => i18n_language_name($node->language),
266
    );
262
    $extra_fields_display_settings = field_extra_fields_get_display('node', $node->type, $view_mode);
263
    if ($extra_fields_display_settings['language']['visible']) {
264
      $node->content['language'] = array(
265
        '#type' => 'item',
266
        '#title' => t('Language'),
267
        '#markup' => i18n_language_name($node->language),
268
      );
269
    }
267 270
  }
268 271
}
269 272

  

Also available in: Unified diff