You are here

function video_preset_admin_settings in Video 6.5

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

Video transcoder admin settings

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

File

./video.admin.inc, line 175

Code

function video_preset_admin_settings($form_state) {
  $presets = video_get_presets(TRUE);
  $enabled = video_get_presets();
  $options = array();
  $help = array();
  foreach ($presets as $preset) {
    $options[$preset->id] = check_plain($preset->name);
    if (!empty($preset->help)) {
      $help[$preset->id] = check_plain($preset->help);
    }
  }
  $form['vid_preset'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Video transcode presets'),
    '#options' => $options,
    '#default_value' => array_keys($enabled),
    '#required' => TRUE,
    '#help' => $help,
  );
  $form = system_settings_form($form);
  $form['#theme'] = 'video_preset_admin_settings';
  return $form;
}