Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/taxonomy/views_handler_argument_vocabulary_vid.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_argument_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_argument_vocabulary_vid extends views_handler_argument_numeric { |
14 |
|
|
14 | 15 |
/** |
15 | 16 |
* Override the behavior of title(). Get the name of the vocabulary. |
16 | 17 |
*/ |
17 |
function title() { |
|
18 |
public function title() {
|
|
18 | 19 |
$title = db_query("SELECT v.name FROM {taxonomy_vocabulary} v WHERE v.vid = :vid", array(':vid' => $this->argument))->fetchField(); |
19 | 20 |
|
20 | 21 |
if (empty($title)) { |
... | ... | |
23 | 24 |
|
24 | 25 |
return check_plain($title); |
25 | 26 |
} |
27 |
|
|
26 | 28 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules