function brightcove_admin_players in Brightcove Video Connect 7.2
Same name and namespace in other branches
- 7.7 brightcove.player.inc \brightcove_admin_players()
- 7.3 brightcove.admin.inc \brightcove_admin_players()
- 7.6 brightcove.player.inc \brightcove_admin_players()
1 string reference to 'brightcove_admin_players'
- brightcove_menu in ./
brightcove.module - Implements hook_menu().
File
- ./
brightcove.admin.inc, line 251 - 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' => 2,
),
);
$rows = array();
foreach ($players as $player) {
$rows[] = array(
check_plain($player->name),
check_plain($player->player_id),
check_plain($player->player_key),
_brightcove_player_is_default($player) ? t('Default') : l(t('Set default'), 'admin/config/media/brightcove/players/' . urlencode($player->name) . '/setdefault'),
l(t('Edit'), 'admin/config/media/brightcove/players/' . urlencode($player->name) . '/edit'),
l(t('Delete'), 'admin/config/media/brightcove/players/' . urlencode($player->name) . '/delete'),
);
}
return array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
);
}