Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/node/views_handler_filter_node_access.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_filter_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_filter_node_access extends views_handler_filter { |
14 |
function admin_summary() { } |
|
15 |
function operator_form(&$form, &$form_state) { } |
|
16 |
function can_expose() { |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function admin_summary() { |
|
19 |
} |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritdoc} |
|
23 |
*/ |
|
24 |
public function operator_form(&$form, &$form_state) { |
|
25 |
} |
|
26 |
|
|
27 |
/** |
|
28 |
* {@inheritdoc} |
|
29 |
*/ |
|
30 |
public function can_expose() { |
|
17 | 31 |
return FALSE; |
18 | 32 |
} |
19 | 33 |
|
20 | 34 |
/** |
21 | 35 |
* See _node_access_where_sql() for a non-views query based implementation. |
22 | 36 |
*/ |
23 |
function query() { |
|
37 |
public function query() {
|
|
24 | 38 |
if (!user_access('administer nodes') && module_implements('node_grants')) { |
25 | 39 |
$table = $this->ensure_my_table(); |
26 | 40 |
$grants = db_or(); |
... | ... | |
37 | 51 |
$this->query->add_where('AND', $table . '.grant_view', 1, '>='); |
38 | 52 |
} |
39 | 53 |
} |
54 |
|
|
40 | 55 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules