Révision 7547bb19
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/views/modules/taxonomy/views_handler_field_taxonomy.inc | ||
---|---|---|
22 | 22 |
parent::construct(); |
23 | 23 |
$this->additional_fields['vid'] = 'vid'; |
24 | 24 |
$this->additional_fields['tid'] = 'tid'; |
25 |
$this->additional_fields['name'] = 'name'; |
|
25 | 26 |
$this->additional_fields['vocabulary_machine_name'] = array( |
26 | 27 |
'table' => 'taxonomy_vocabulary', |
27 | 28 |
'field' => 'machine_name', |
... | ... | |
65 | 66 |
$term = new stdClass(); |
66 | 67 |
$term->tid = $tid; |
67 | 68 |
$term->vid = $this->get_value($values, 'vid'); |
69 |
$term->name = $this->get_value($values, 'name'); |
|
68 | 70 |
$term->vocabulary_machine_name = $values->{$this->aliases['vocabulary_machine_name']}; |
69 | 71 |
$this->options['alter']['make_link'] = TRUE; |
70 | 72 |
$uri = entity_uri('taxonomy_term', $term); |
73 |
if (isset($uri['options'])) { |
|
74 |
$this->options['alter'] = array_merge($this->options['alter'], $uri['options']); |
|
75 |
} |
|
71 | 76 |
$this->options['alter']['path'] = $uri['path']; |
72 | 77 |
} |
73 | 78 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules