Projet

Général

Profil

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

root / drupal7 / sites / all / modules / views / tests / test_handlers / views_test_area_access.inc @ 6eb8d15f

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains views_test_area_access
6
 */
7

    
8
class views_test_area_access extends views_handler_area {
9

    
10
  /**
11
   * {@inheritdoc}
12
   */
13
  function access() {
14
    return $this->options['custom_access'];
15
 }
16

    
17
  /**
18
   * {@inheritdoc}
19
   */
20
  function option_definition() {
21
    $options = parent::option_definition();
22

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

    
25
    return $options;
26
  }
27

    
28
}