You are here

function brightcove_default_player in Brightcove Video Connect 7.5

Same name and namespace in other branches
  1. 7.3 brightcove.module \brightcove_default_player()
  2. 7.4 brightcove.module \brightcove_default_player()

Get the default player.

Return value

mixed|null

File

./brightcove.module, line 825
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_default_player() {
  $default = variable_get('brightcove_player_default', NULL);
  if (is_null($default)) {
    drupal_set_message(t("The default brightcove player has not been defined yet."), 'warning');
    return NULL;
  }
  return brightcove_player_load($default);
}