function image_ncck_flickr_settings in Embedded Media Field 5
hook image_ncck_PROVIDER_settings this should return a subform to be added to the image_ncck_settings() admin settings page. note that a form field will already be provided, at $form['PROVIDER'] (such as $form['flickr']) so if you want specific provider settings within that field, you can add the elements to that form field.
File
- contrib/
image_ncck/ providers/ flickr.inc, line 84
Code
function image_ncck_flickr_settings() {
$form['flickr']['api'] = array(
'#type' => 'fieldset',
'#title' => t('Flickr API'),
'#description' => t('You will first need to apply for an API Developer Key from the !flickr.', array(
'!flickr' => l(t('Flickr Developer Profile page'), IMAGE_NCCK_FLICKR_API_APPLICATION_URL, array(
'target' => '_blank',
)),
)),
'#collapsible' => true,
'#collapsed' => variable_get('image_ncck_flickr_api_key', '') != '',
);
$form['flickr']['api']['image_ncck_flickr_api_key'] = array(
'#type' => 'textfield',
'#title' => t('Flickr API Key'),
'#default_value' => variable_get('image_ncck_flickr_api_key', ''),
'#description' => t('Please enter your Flickr Developer Key here.'),
);
$form['flickr']['api']['image_ncck_flickr_api_secret'] = array(
'#type' => 'textfield',
'#title' => t('Flickr API Secret'),
'#default_value' => variable_get('image_ncck_flickr_api_secret', ''),
'#description' => t('If you have a secret for the Flickr API, enter it here.'),
);
return $form;
}