Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/user/views_handler_field_user_language.inc | ||
---|---|---|
12 | 12 |
*/ |
13 | 13 |
class views_handler_field_user_language extends views_handler_field_user { |
14 | 14 |
|
15 |
function render_link($data, $values) { |
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function render_link($data, $values) { |
|
16 | 19 |
$uid = $this->get_value($values, 'uid'); |
17 | 20 |
if (!empty($this->options['link_to_user'])) { |
18 | 21 |
$uid = $this->get_value($values, 'uid'); |
... | ... | |
32 | 35 |
return $this->sanitize_value($lang->name); |
33 | 36 |
} |
34 | 37 |
|
35 |
function render($values) { |
|
38 |
/** |
|
39 |
* {@inheritdoc} |
|
40 |
*/ |
|
41 |
public function render($values) { |
|
36 | 42 |
$value = $this->get_value($values); |
37 | 43 |
return $this->render_link($this->sanitize_value($value), $values); |
38 | 44 |
} |
45 |
|
|
39 | 46 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules