You are here

function video_transcoder_admin_settings in Video 6.5

Same name and namespace in other branches
  1. 6.4 video.admin.inc \video_transcoder_admin_settings()
  2. 7.2 modules/video_ui/video.admin.inc \video_transcoder_admin_settings()
  3. 7 modules/video_ui/video.admin.inc \video_transcoder_admin_settings()

Video transcoder admin settings

1 string reference to 'video_transcoder_admin_settings'
video_menu in ./video.module
Implementation of hook_menu().

File

./video.admin.inc, line 132

Code

function video_transcoder_admin_settings($form_state) {
  $form = array();
  $transcoderplugins = video_get_transcoder_plugins();
  ksort($transcoderplugins);
  $transcoders = array();
  $help = array();
  foreach ($transcoderplugins as $transcoderplugin) {
    $transcoder = video_get_transcoder($transcoderplugin['name']);
    $transcoders[$transcoderplugin['name']] = $transcoder
      ->get_name();
    $help[] = $transcoder
      ->get_help();
    $form = array_merge($form, $transcoder
      ->admin_settings($form_state));
  }
  $form['vid_convertor'] = array(
    '#type' => 'radios',
    '#title' => t('Video transcoder'),
    '#default_value' => variable_get('vid_convertor', 'video_localcommand'),
    '#options' => $transcoders,
    '#description' => t('Selecting a video transcoder will help you convert videos and generate thumbnails. !list', array(
      '!list' => theme('item_list', $help),
    )),
    '#prefix' => '<div id="transcoder-radios">',
    '#suffix' => '</div>',
    '#weight' => -1,
  );
  return system_settings_form($form);
}