You are here

function video_cck_imeem_settings in Embedded Media Field 5

File

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

Code

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