$vars) { $saved = array_merge($saved, $vars); } $options = _flowplayer_options(); $form = array(); $form['flowplayer_mediaplayer']['appearance']['player'] = array( '#type' => 'select', '#default_value' => $saved['player'], '#title' => t('FlowPlayer to use'), '#options' => $options['player'], '#description' => t('Defines which FlowPlayer to use.'), ); $form['flowplayer_mediaplayer']['appearance']['usePlayOverlay'] = array( '#type' => 'select', '#default_value' => $saved['usePlayOverlay'], '#title' => t('Overlay play control'), '#options' => $options['bool'], '#description' => t('Show a play button at the start of the playlist. (usePlayOverlay)'), ); $form['flowplayer_mediaplayer']['appearance']['hideControls'] = array( '#type' => 'select', '#default_value' => $saved['hideControls'], '#title' => t('Hide controls'), '#options' => $options['bool'], '#description' => t('Hide the player controls and progress bar. (hideControls)'), ); $form['flowplayer_mediaplayer']['appearance']['controlBarGloss'] = array( '#type' => 'select', '#default_value' => $saved['controlBarGloss'], '#title' => t('Control bar gloss'), '#options' => $options['controlBarGloss'], '#description' => t('Choose the level of \'gloss\' to apply to the control bar. (controlBarGloss)'), ); $form['flowplayer_mediaplayer']['appearance']['showFullScreenButton'] = array( '#type' => 'select', '#default_value' => $saved['showFullScreenButton'], '#title' => t('Show full screen button'), '#options' => $options['bool'], '#description' => t('Show a button on the player to allow full screen mode. (showFullScreenButton)'), ); $form['flowplayer_mediaplayer']['appearance']['showPlayListButtons'] = array( '#type' => 'select', '#default_value' => $saved['showPlayListButtons'], '#title' => t('Show playlist buttons'), '#options' => $options['bool'], '#description' => t('Show previous/next buttons when playing a playlist. (showPlayListButtons)'), ); $form['flowplayer_mediaplayer']['playback']['autoPlay'] = array( '#type' => 'select', '#options' => $options['bool'], '#default_value' => $saved['autoPlay'], '#title' => t('Autoplay'), '#description' => t('Automatically start playing the media. (autoPlay)'), ); $form['flowplayer_mediaplayer']['playback']['loop'] = array( '#type' => 'select', '#default_value' => $saved['loop'], '#title' => t('Loop'), '#options' => $options['bool'], '#description' => t('Set whether the media repeats after completion. (loop)'), ); $form['flowplayer_mediaplayer']['playback']['initialVolumePercentage'] = array( '#type' => 'textfield', '#default_value' => $saved['initialVolumePercentage'], '#size' => 8, '#maxlength' => 3, '#title' => t('Volume'), '#description' => t('Starting volume of the player. (initialVolumePercentage)'), ); $form['#tree'] = TRUE; $form['submit'] = array('#type' => 'submit', '#value' => t('Save configuration'), '#submit' => array('swftools_admin_form_submit') ); $form['reset'] = array('#type' => 'submit', '#value' => t('Reset to defaults'), '#submit' => array('swftools_admin_form_submit') ); $form['#theme'] = 'system_settings_form'; return $form; }