You are here

function video_youtube_admin_settings in Video 6.2

Same name and namespace in other branches
  1. 5 types/video_youtube/video_youtube.module \video_youtube_admin_settings()
  2. 6 types/video_youtube/video_youtube.module \video_youtube_admin_settings()

Setting form for video_upload

1 string reference to 'video_youtube_admin_settings'
video_youtube_menu in types/video_youtube/video_youtube.module
Implementation of hook_menu

File

types/video_youtube/video_youtube.module, line 45
Enable Youtube support for video module.

Code

function video_youtube_admin_settings() {
  $form = array();
  $form['video_youtube_auto_thumbnail'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable auto thumbnailing for youtube videos'),
    '#default_value' => variable_get('video_youtube_auto_thumbnail', false),
  );
  $form['video_youtube_related'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable related videos'),
    '#default_value' => variable_get('video_youtube_related', false),
    '#description' => t('If you enable related videos the Youtube player will display a list of related videos once the video completes playing.'),
  );
  $form['video_youtube_validation'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable validation'),
    '#default_value' => variable_get('video_youtube_validation', false),
    '#description' => t('If you enable validation, on each youtube video submission, you web server will contact Youtube to check that the inserted video is available and embeddable.'),
  );
  $form['video_youtube_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Developer Key'),
    '#description' => t('Insert here the developer Key. You can get one from <a href="http://www.youtube.com/my_profile_dev">Youtube Development pages</a>.'),
    '#default_value' => variable_get('video_youtube_api_key', ''),
  );

  // jlampton added: new youtube optional client id
  $form['video_youtube_client_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Client ID'),
    '#description' => t('Insert here the client ID. You can get one from <a href="http://www.youtube.com/my_profile_dev">Youtube Development pages</a>.'),
    '#default_value' => variable_get('video_youtube_client_id', ''),
  );
  return system_settings_form($form);
}