function brightcove_field_get_value in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_field_get_value()
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_get_value()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_get_value()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_get_value()
- 7.5 brightcove_field/brightcove_field.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;
}