You are here

function video_cck_veoh_settings in Embedded Media Field 5

File

contrib/video_cck/providers/veoh.inc, line 25

Code

function video_cck_veoh_settings() {
  $form['veoh']['api'] = array(
    '#type' => 'fieldset',
    '#title' => t('Veoh API'),
    '#description' => t('If you wish to be able to display Veoh thumbnails automatically, you will first need to apply for an API Developer Key from the !veoh. Note that you do not need this key to display Veoh videos themselves.', array(
      '!veoh' => l('Veoh Developer Profile page', VIDEO_CCK_VEOH_API_APPLICATION_URL, array(
        'target' => '_blank',
      )),
    )),
    '#collapsible' => true,
    '#collapsed' => true,
  );
  $form['veoh']['api']['video_cck_veoh_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Veoh API Key'),
    '#default_value' => variable_get('video_cck_veoh_api_key', ''),
    '#description' => t('Please enter your Veoh Developer Key here.'),
  );
  $form['veoh']['api']['video_cck_veoh_api_secret'] = array(
    '#type' => 'textfield',
    '#title' => t('Veoh API Secret'),
    '#default_value' => variable_get('video_cck_veoh_api_secret', ''),
    '#description' => t('If you have a secret for the Veoh API, enter it here.'),
  );
  return $form;
}