You are here

function brightcove_theme in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 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 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',
    ],
  ];
}