You are here

function brightcove_playlist_overview_page in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.4 brightcove.playlist.inc \brightcove_playlist_overview_page()
  2. 7.5 brightcove.playlist.inc \brightcove_playlist_overview_page()

Renders the playlist overview page.

Return value

string Rendered overivew page.

1 string reference to 'brightcove_playlist_overview_page'
brightcove_menu in ./brightcove.module
Implements hook_menu().

File

./brightcove.playlist.inc, line 13
This file contains function over the brightcove playlist feature.

Code

function brightcove_playlist_overview_page() {
  $table = array(
    'header' => array(
      t('Title'),
      array(
        'colspan' => 2,
        'data' => t('Operations'),
      ),
    ),
  );
  $playlists = brightcove_get_playlists();
  if ($playlists) {
    foreach ($playlists as $playlist) {
      $table['rows'][] = _brightcove_playlist_overview_row($playlist);
    }
  }
  else {
    $table['rows'][] = array(
      array(
        'data' => t('No playlist found.'),
        'colspan' => count($table['header']),
      ),
    );
  }
  return theme('table', $table);
}