You are here

public function SocialContentSoundCloud::globalSettingsForm in Social Content 7.2

The shared global settings form from all SoundCloud instances.

Return value

array Global settings form.

Overrides SocialContent::globalSettingsForm

File

modules/soundcloud/social_content_soundcloud.class.inc, line 126
Social Content SoundCloud class.

Class

SocialContentSoundCloud
@file Social Content SoundCloud class.

Code

public function globalSettingsForm() {
  $settings = $this->settings['global'];
  $form = parent::globalSettingsForm($settings);
  $form['description'] = array(
    '#markup' => '<p>' . t('See !link for API information.', array(
      '!link' => l('developers.soundcloud.com', 'https://developers.soundcloud.com'),
    )) . '</p>',
  );
  $form['client_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Client ID'),
    '#default_value' => isset($settings['client_id']) ? $settings['client_id'] : NULL,
    '#required' => TRUE,
    '#description' => t('Register an application to get a Client ID.'),
  );
  return $form;
}