Projet

Général

Profil

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

root / drupal7 / sites / all / modules / media_youtube / includes / MediaYouTubeBrowser.inc @ 70a4c29b

1
<?php
2

    
3
/**
4
 * @file media_youtube/includes/MediaYouTubeBrowser.inc
5
 *
6
 * Definition of MediaYouTubeBrowser.
7
 */
8

    
9
/**
10
 * Media browser plugin for displaying a specific view and display.
11
 */
12
class MediaYouTubeBrowser extends MediaBrowserPlugin {
13
  /**
14
   * Implements MediaBrowserPluginInterface::access().
15
   */
16
  public function access($account = NULL) {
17
    return media_internet_access($account);
18
  }
19

    
20
  /**
21
   * Implements MediaBrowserPlugin::view().
22
   */
23
  public function view() {
24
    $build = array();
25
    $params = $this->params;
26
    $build['form'] = drupal_get_form('media_youtube_add', $params);
27

    
28
    return $build;
29
  }
30
}