You are here

function emvideo_imeem_settings in Embedded Media Field 6

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

File

contrib/emvideo/providers/imeem.inc, line 24

Code

function emvideo_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 <a href="@imeem" target="_blank">IMEEM Developer Profile page</a>. Note that you do not need this key to display IMEEM videos themselves.', array(
      '@imeem' => EMVIDEO_IMEEM_API_APPLICATION_URL,
    )),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['imeem']['api']['emvideo_imeem_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('IMEEM API Key'),
    '#default_value' => variable_get('emvideo_imeem_api_key', ''),
    '#description' => t('Please enter your IMEEM Developer Key here.'),
  );
  $form['imeem']['api']['emvideo_imeem_api_secret'] = array(
    '#type' => 'textfield',
    '#title' => t('IMEEM API Secret'),
    '#default_value' => variable_get('emvideo_imeem_api_secret', ''),
    '#description' => t('If you have a secret for the IMEEM API, enter it here.'),
  );
  return $form;
}