function brightcove_theme in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 brightcove.module \brightcove_theme()
- 6.2 brightcove.module \brightcove_theme()
- 6 brightcove.module \brightcove_theme()
- 7.7 brightcove.module \brightcove_theme()
- 7.2 brightcove.module \brightcove_theme()
- 7.3 brightcove.module \brightcove_theme()
- 7.4 brightcove.module \brightcove_theme()
- 7.5 brightcove.module \brightcove_theme()
- 7.6 brightcove.module \brightcove_theme()
- 3.x brightcove.module \brightcove_theme()
Implements hook_theme().
File
- ./
brightcove.module, line 283 - Brightcove module.
Code
function brightcove_theme($existing, $type, $theme, $path) {
return [
'brightcove_video' => [
'render element' => 'elements',
],
'brightcove_video_player' => [
'variables' => [
'video_id' => 0,
'account' => 0,
'player' => BrightcoveAPIClient::DEFAULT_PLAYER,
'embed' => 'default',
'height' => NULL,
'width' => NULL,
'data_usage' => NULL,
],
],
'brightcove_playlist_video_player' => [
'variables' => [
'playlist_id' => 0,
'account' => 0,
'player' => BrightcoveAPIClient::DEFAULT_PLAYER,
'embed' => 'default',
'height' => NULL,
'width' => NULL,
'data_usage' => NULL,
],
],
];
}