function emaudio_soundcloud_settings in Media: SoundCloud 6
Implementation of hook_emaudio_PROVIDER_settings().
This should return a subform to be added to the emaudio_settings() admin settings page. Note that a form fieldset will already be provided, at $form['odeo'] (such as $form['podomatic']). So if you want specific provider settings within that field, you can add the elements to that form field.
File
- providers/
soundcloud.inc, line 49 - This include processes Soundcloud audio files for use by emaudio.module.
Code
function emaudio_soundcloud_settings() {
$form = array();
$form['soundcloud']['media_soundcloud_color_play'] = array(
'#type' => 'textfield',
'#title' => t('Play button color'),
'#size' => 8,
'#default_value' => variable_get('media_soundcloud_color_play', ''),
);
if (module_exists('colorpicker')) {
$form['soundcloud']['media_soundcloud_color_play']['#type'] = 'colorpicker_textfield';
}
$form['soundcloud']['media_soundcloud_comments'] = array(
'#type' => 'checkbox',
'#title' => t('Show timed comments'),
'#size' => 8,
'#default_value' => variable_get('media_soundcloud_comments', TRUE),
);
return $form;
}