Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/translation.views.inc
13 13
 * Add translation information to the node table.
14 14
 */
15 15
function translation_views_data_alter(&$data) {
16

  
17
  // Joins
16
  // Joins.
18 17
  $data['node']['table']['join']['node'] = array(
19 18
    'left_field' => 'tnid',
20 19
    'field' => 'tnid',
21 20
  );
22 21

  
23
  // The translation ID (nid of the "source" translation)
22
  // The translation ID (nid of the "source" translation).
24 23
  $data['node']['tnid'] = array(
25 24
    'group' => t('Content translation'),
26 25
    'title' => t('Translation set node ID'),
......
34 33
    ),
35 34
    'argument' => array(
36 35
      'handler' => 'views_handler_argument_node_tnid',
37
      'name field' => 'title', // the field to display in the summary.
36
      // The field to display in the summary.
37
      'name field' => 'title',
38 38
      'numeric' => TRUE,
39 39
      'validate type' => 'tnid',
40 40
    ),
......
88 88
    ),
89 89
  );
90 90

  
91
  // Translation status
91
  // Translation status.
92 92
  $data['node']['translate'] = array(
93 93
    'group' => t('Content translation'),
94 94
    'title' => t('Translation status'),
......
117 117
    ),
118 118
  );
119 119

  
120

  
121 120
}

Formats disponibles : Unified diff