Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/test_handlers/views_test_area_access.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Contains views_test_area_access
|
|
5 |
* Definition of views_test_area_access.
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 |
/** |
|
9 |
* A test access plugin. |
|
10 |
*/ |
|
8 | 11 |
class views_test_area_access extends views_handler_area { |
9 | 12 |
|
10 | 13 |
/** |
11 | 14 |
* {@inheritdoc} |
12 | 15 |
*/ |
13 |
function access() { |
|
16 |
public function access() {
|
|
14 | 17 |
return $this->options['custom_access']; |
15 |
} |
|
18 |
}
|
|
16 | 19 |
|
17 | 20 |
/** |
18 | 21 |
* {@inheritdoc} |
19 | 22 |
*/ |
20 |
function option_definition() { |
|
23 |
public function option_definition() {
|
|
21 | 24 |
$options = parent::option_definition(); |
22 | 25 |
|
23 | 26 |
$options['custom_access'] = array('default' => TRUE, 'bool' => TRUE); |
Formats disponibles : Unified diff
Weekly update of contrib modules