You are here

function brightcove_field_get_value in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.2 brightcove_field/brightcove_field.module \brightcove_field_get_value()
  2. 7.3 brightcove_field/brightcove_field.module \brightcove_field_get_value()
  3. 7.4 brightcove_field/brightcove_field.module \brightcove_field_get_value()
  4. 7.5 brightcove_field/brightcove_field.module \brightcove_field_get_value()
  5. 7.6 brightcove.module \brightcove_field_get_value()

Get Brightcove player.

Parameters

$instance:

$stored:

Return value

mixed

File

./brightcove.module, line 1813
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_field_get_value($instance, $stored) {
  if ($stored) {
    return $stored;
  }
  if (!empty($instance['settings']['brightcove_player'])) {
    return $instance['settings']['brightcove_player'];
  }
  elseif ($pid = variable_get('brightcove_player_default')) {
    return $pid;
  }
  return NULL;
}