You are here

public function SocialContentSoundCloud::instanceSettingsForm in Social Content 7.2

Instance settings form.

Return value

array Any instance settings that will be included on all instance forms for the current global.

Overrides SocialContent::instanceSettingsForm

File

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

Class

SocialContentSoundCloud
@file Social Content SoundCloud class.

Code

public function instanceSettingsForm() {
  $settings = $this->settings['instance'];
  $form = parent::instanceSettingsForm($settings);
  $form['account_id'] = array(
    '#type' => 'textfield',
    '#title' => t('SoundCloud Account ID'),
    '#description' => t('The SoundCloud Account ID to pull the statuses from. Example: 3207'),
    '#suffix' => t("<strong>Note:</strong> To find the correct ID (As it's not the ID that may or may not be your user name), open soundcloud.com, load the /user/xxx landing page, view the page source and search for 'soundcloud://users:'. It is the number located after that string."),
    '#default_value' => isset($settings['account_id']) ? $settings['account_id'] : NULL,
  );
  return $form;
}