You are here

function brightcove_theme in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 brightcove.module \brightcove_theme()
  2. 6.2 brightcove.module \brightcove_theme()
  3. 6 brightcove.module \brightcove_theme()
  4. 7.7 brightcove.module \brightcove_theme()
  5. 7.2 brightcove.module \brightcove_theme()
  6. 7.3 brightcove.module \brightcove_theme()
  7. 7.4 brightcove.module \brightcove_theme()
  8. 7.5 brightcove.module \brightcove_theme()
  9. 7.6 brightcove.module \brightcove_theme()
  10. 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,
      ],
    ],
  ];
}