Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/system/views_handler_argument_file_fid.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_argument_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_argument_file_fid extends views_handler_argument_numeric { |
14 |
|
|
14 | 15 |
/** |
15 | 16 |
* Override the behavior of title_query(). Get the filenames. |
16 | 17 |
*/ |
17 |
function title_query() { |
|
18 |
public function title_query() {
|
|
18 | 19 |
$titles = db_select('file_managed', 'f') |
19 | 20 |
->fields('f', array('filename')) |
20 | 21 |
->condition('fid', $this->value) |
... | ... | |
25 | 26 |
} |
26 | 27 |
return $titles; |
27 | 28 |
} |
29 |
|
|
28 | 30 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules