You are here

public function MediaBrowserBrightcovePlaylist::view in Brightcove Video Connect 7.4

Same name and namespace in other branches
  1. 7.7 brightcove_media/includes/MediaBrowserBrightcovePlaylist.inc \MediaBrowserBrightcovePlaylist::view()
  2. 7.6 brightcove_media/includes/MediaBrowserBrightcovePlaylist.inc \MediaBrowserBrightcovePlaylist::view()

Implements MediaBrowserPlugin::view().

File

brightcove_media/includes/MediaBrowserBrightcovePlaylist.inc, line 24
Definition of MediaBrowserPlaylist.

Class

MediaBrowserBrightcovePlaylist
Media browser plugin for showing the upload form.

Code

public function view() {
  $media_path = drupal_get_path('module', 'media');
  $bcpath = drupal_get_path('module', 'brightcove_media');
  return array(
    '#title' => t('Brightcove playlists'),
    '#settings' => array(
      //        'viewMode' => 'thumbnails',
      'getMediaUrl' => url('brightcove/media/playlist/list'),
    ),
    '#attached' => array(
      'js' => array(
        $bcpath . '/js/brightcove_media.js',
        $bcpath . '/js/brightcove_media.playlist.js',
      ),
      'css' => array(
        $bcpath . '/brightcove_media.css',
      ),
    ),
    // If the #form and #markup parameters are not empty the media module will not
    // render fake submit and cancel buttons.
    'form' => drupal_get_form('brightcove_media_playlist_browser_form'),
  );
}