function brightcove_admin_players in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.7 brightcove.player.inc \brightcove_admin_players()
- 7.2 brightcove.admin.inc \brightcove_admin_players()
- 7.6 brightcove.player.inc \brightcove_admin_players()
File
- ./
brightcove.admin.inc, line 390 - Admin settings for Brightcove module.
Code
function brightcove_admin_players() {
$players = brightcove_player_load_all();
$header = array(
t('Name'),
t('Player ID'),
t('Player Key'),
array(
'data' => t('Operations'),
'colspan' => 3,
),
);
$rows = array();
foreach ($players as $player) {
$default = _brightcove_player_is_default($player);
$rows[] = array(
check_plain($player->name),
check_plain($player->player_id),
check_plain($player->player_key),
$default ? t('Default') : l(t('Set default'), 'admin/config/media/brightcove/players/' . $player->pid . '/setdefault'),
l(t('Edit'), 'admin/config/media/brightcove/players/' . $player->pid . '/edit'),
$default ? '' : l(t('Delete'), 'admin/config/media/brightcove/players/' . $player->pid . '/delete'),
);
}
return array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
);
}