You are here

function video_cck_livevideo_settings in Embedded Media Field 5

hook video_cck_PROVIDER_settings this should return a subform to be added to the video_cck_settings() admin settings page. note that a form field will already be provided, at $form['PROVIDER'] (such as $form['livevideo']) so if you want specific provider settings within that field, you can add the elements to that form field.

File

contrib/video_cck/providers/livevideo.inc, line 41

Code

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