function brightcove_field_get_value in Brightcove Video Connect 7.3
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.4 brightcove_field/brightcove_field.module \brightcove_field_get_value()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_get_value()
- 7.6 brightcove.module \brightcove_field_get_value()
1 call to brightcove_field_get_value()
- theme_brightcove_field_formatter_default in brightcove_field/
brightcove_field.formatters.inc - Theme callback for Brightcove field formatter. Returns an embedded player with default site player.
File
- brightcove_field/
brightcove_field.module, line 1574 - Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
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;
}