Commit 1786970e authored by attila.fekete's avatar attila.fekete
Browse files

Set default height for HTML5 player if value is missing from the instance settings

parent f2531ed2
......@@ -391,8 +391,8 @@ function soundcloudfield_field_formatter_view($entity_type, $entity, $field, $in
$oembed_endpoint = 'http://soundcloud.com/oembed';
// Get HTML5 player-specific settings.
$html5_player_height = $settings['html5_player']['html5_player_height'];
$html5_player_height_sets = $settings['html5_player']['html5_player_height_sets'];
$html5_player_height = (empty($settings['html5_player']['html5_player_height']) ? SOUNDCLOUDFIELD_DEFAULT_HTML5_PLAYER_HEIGHT : $settings['html5_player']['html5_player_height']);
$html5_player_height_sets = (empty($settings['html5_player']['html5_player_height_sets']) ? SOUNDCLOUDFIELD_DEFAULT_HTML5_PLAYER_HEIGHT_SETS : $settings['html5_player']['html5_player_height_sets']);
$visual_player = ($display['settings']['player_type'] == 'visual' ? 'true' : 'false');
foreach ($items as $delta => $item) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment