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