You are here

function video_cck_ustreamlive_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['ustreamlive']) so if you want specific provider settings within that field, you can add the elements to that form field.

File

contrib/video_cck/providers/ustreamlive.inc, line 43

Code

function video_cck_ustreamlive_settings() {
  $form['ustreamlive']['api'] = array(
    '#type' => 'fieldset',
    '#title' => t('UStream.TV API'),
    '#description' => t('The API is required for thumbnails and other features.You will first need to apply for an API Developer Key from the !ustreamlive.', array(
      '!ustreamlive' => l(t('Ustream Application Registration page'), VIDEO_CCK_USTREAMLIVE_API_APPLICATION_URL, array(
        'target' => '_blank',
      )),
    )),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['ustreamlive']['api']['video_cck_ustreamlive_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('UStream.TV API Key'),
    '#default_value' => variable_get('video_cck_ustreamlive_api_key', ''),
    '#description' => t('Please enter your UStream.TV API Key here.'),
  );
  return $form;
}