Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/node/views_handler_argument_node_vid.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Provide node vid argument handler.
|
|
5 |
* Definition of views_handler_argument_node_vid.
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
/** |
9 | 9 |
* Argument handler to accept a node revision id. |
10 | 10 |
*/ |
11 | 11 |
class views_handler_argument_node_vid extends views_handler_argument_numeric { |
12 |
// No constructor is necessary. |
|
13 | 12 |
|
14 | 13 |
/** |
15 | 14 |
* Override the behavior of title(). Get the title of the revision. |
16 | 15 |
*/ |
17 |
function title_query() { |
|
16 |
public function title_query() {
|
|
18 | 17 |
$titles = array(); |
19 | 18 |
|
20 | 19 |
$result = db_query("SELECT n.title FROM {node_revision} n WHERE n.vid IN (:vids)", array(':vids' => $this->value)); |
... | ... | |
23 | 22 |
} |
24 | 23 |
return $titles; |
25 | 24 |
} |
25 |
|
|
26 | 26 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules