function brightcove_playlist_load in Brightcove Video Connect 7.7
Same name and namespace in other branches
- 7.3 brightcove.module \brightcove_playlist_load()
- 7.4 brightcove.module \brightcove_playlist_load()
- 7.5 brightcove.module \brightcove_playlist_load()
- 7.6 brightcove.playlist.inc \brightcove_playlist_load()
Loads a brightcove playlist entity object by id.
Parameters
string $id: An id in the form of "12345-6" where 12345 is Playlist->getId() and 6 is the Client->bcid.
Return value
mixed
1 call to brightcove_playlist_load()
- BrightcovePlaylistEntityUIController::overviewTable in ./
brightcove.playlist.inc - Renders the playlist overview table.
1 string reference to 'brightcove_playlist_load'
- brightcove_entity_info in ./
brightcove.module - Implements hook_entity_info().
File
- ./
brightcove.playlist.inc, line 696 - Brightcove playlist related functions.
Code
function brightcove_playlist_load($id) {
brightcove_load_lib();
$playlists = entity_get_controller('brightcove_playlist')
->load([
$id,
]);
return reset($playlists);
}