Projet

Général

Profil

Paste
Télécharger (486 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / tests / test_handlers / views_test_area_access.inc @ 5d12d676

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of views_test_area_access.
6
 */
7

    
8
/**
9
 * A test access plugin.
10
 */
11
class views_test_area_access extends views_handler_area {
12

    
13
  /**
14
   * {@inheritdoc}
15
   */
16
  public function access() {
17
    return $this->options['custom_access'];
18
  }
19

    
20
  /**
21
   * {@inheritdoc}
22
   */
23
  public function option_definition() {
24
    $options = parent::option_definition();
25

    
26
    $options['custom_access'] = array('default' => TRUE, 'bool' => TRUE);
27

    
28
    return $options;
29
  }
30

    
31
}