You are here

function emvideo_livevideo_settings in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/livevideo.inc \emvideo_livevideo_settings()

hook emvideo_PROVIDER_settings this should return a subform to be added to the emvideo_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/emvideo/providers/livevideo.inc, line 45
This include processes livevideo media files for use by emfield.module.

Code

function emvideo_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 <a href="@livevideo" target="_blank">Live Video Developer Profile page</a>. Note that you do not need this key to display Live Video videos themselves.', array(
      '@livevideo' => EMVIDEO_LIVEVIDEO_API_INFO,
    )),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['livevideo']['api']['emvideo_livevideo_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Live Video API Key'),
    '#default_value' => variable_get('emvideo_livevideo_api_key', ''),
    '#description' => t('Please enter your Live Video Developer Key here.'),
  );
  return $form;
}