aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
committerHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
commit69927fc15c744bd3602fe7d404af6a80130a1ce9 (patch)
tree5d4f042539bf1090359d9ea8a515904544add469 /modules
parent51c7e284ec5976d5918e506265154f34d32e9a48 (diff)
downloadvideo-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.gz
video-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.bz2
Fixed the JS issues and Select players and trasncoders
Diffstat (limited to 'modules')
-rw-r--r--modules/video_ui/video.admin.inc26
1 files changed, 17 insertions, 9 deletions
diff --git a/modules/video_ui/video.admin.inc b/modules/video_ui/video.admin.inc
index 32fc5e8..ed76a20 100644
--- a/modules/video_ui/video.admin.inc
+++ b/modules/video_ui/video.admin.inc
@@ -112,15 +112,23 @@ function video_players_admin_settings() {
'#suffix' => '</div>',
);
- $form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
- '#type' => !empty($flv_players) ? 'radios' : 'markup',
- '#title' => t('Flash Player for') . ' ' . $ext,
- '#value' => !empty($flv_players) ? '' : t('No flash players detected.<br />You need to install !swf_tools or !flowplayer.', array('!swf_tools' => l(t('SWF Tools'), 'http://www.drupal.org/project/swftools'), '!flowplayer' => l(t('Flowplayer'), 'http://www.drupal.org/project/flowplayer'))),
- '#options' => $flv_players,
- '#default_value' => variable_get('video_extension_' . $ext . '_flash_player', ''),
- '#prefix' => '<div class="admin_flv_player_wrapper" id="flv_player_' . $ext . '">',
- '#suffix' => '</div>',
- );
+ if (!empty($flv_players)) {
+ $form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
+ '#type' => 'radios',
+ '#title' => t('Flash Player for') . ' ' . $ext,
+ '#options' => $flv_players,
+ '#default_value' => variable_get('video_extension_' . $ext . '_flash_player', ''),
+ '#prefix' => '<div class="admin_flv_player_wrapper" id="flv_player_' . $ext . '">',
+ '#suffix' => '</div>',
+ );
+ } else {
+ $form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
+ '#type' => 'markup',
+ '#markup' => t('No flash players detected.<br />You need to install !swf_tools or !flowplayer.', array('!swf_tools' => l(t('SWF Tools'), 'http://www.drupal.org/project/swftools'), '!flowplayer' => l(t('Flowplayer'), 'http://www.drupal.org/project/flowplayer'))),
+ '#prefix' => '<div class="admin_flv_player_wrapper" id="flv_player_' . $ext . '">',
+ '#suffix' => '</div>',
+ );
+ }
}
return system_settings_form($form);
}