function emvideo_ustreamlive_settings in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/ustreamlive.inc \emvideo_ustreamlive_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['ustreamlive']) so if you want specific provider settings within that field, you can add the elements to that form field.
File
- contrib/
emvideo/ providers/ ustreamlive.inc, line 41
Code
function emvideo_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'), EMVIDEO_USTREAMLIVE_API_APPLICATION_URL, array(
'target' => '_blank',
)),
)),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['ustreamlive']['api']['emvideo_ustreamlive_api_key'] = array(
'#type' => 'textfield',
'#title' => t('UStream.TV API Key'),
'#default_value' => variable_get('emvideo_ustreamlive_api_key', ''),
'#description' => t('Please enter your UStream.TV API Key here.'),
);
return $form;
}