Projet

Général

Profil

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

root / drupal7 / sites / all / modules / media / tests / includes / MediaModuleTest.inc @ 2b3c8cc1

1
<?php
2

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

    
8
/**
9
 * Test browser plugin.
10
 */
11
class MediaModuleTest extends MediaBrowserPlugin {
12
  /**
13
   * Implements MediaBrowserPluginInterface::access().
14
   */
15
  public function access($account = NULL) {
16
    return TRUE;
17
  }
18

    
19
  /**
20
   * Implements MediaBrowserPlugin::view().
21
   */
22
  public function view() {
23
    $build = array();
24
    $build['test'] = array(
25
      '#markup' => '<p>' . t('Test browser plugin output.') . '</p>',
26
    );
27

    
28
    return $build;
29
  }
30
}