function brightcove_theme in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 brightcove.module \brightcove_theme()
- 8 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()
Implements hook_theme().
File
- ./
brightcove.module, line 322 - Brightcove module.
Code
function brightcove_theme($existing, $type, $theme, $path) {
$player_base_variables = [
'account' => 0,
'data_usage' => '',
'embed' => 'default',
'id' => 0,
'is_playlist' => FALSE,
'player' => BrightcoveAPIClient::DEFAULT_PLAYER,
'type' => '',
'video_id',
];
return [
'brightcove_player_fixed' => [
'variables' => $player_base_variables + [
'height' => NULL,
'units' => 'px',
'width' => NULL,
],
],
'brightcove_player_responsive' => [
'variables' => $player_base_variables + [
'max_width' => 100,
'units' => '%',
],
],
'brightcove_video' => [
'render element' => 'elements',
],
];
}