You are here

public function SocialContentLinkedin::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/linkedin/social_content_linkedin.class.inc, line 161
Social Content Linkedin class.

Class

SocialContentLinkedin
@file Social Content Linkedin class.

Code

public function instanceSettingsForm() {
  $settings = $this->settings['instance'];
  $form = parent::instanceSettingsForm($settings);
  $form['company_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Linkedin Company ID'),
    '#description' => t("The Linkedin company id to pull the statuses from e.g. '165106'. You can use !link.", array(
      '!link' => "<a target='_blank' href='https://developer.linkedin.com/apply-getting-started#company-lookup'>Linkedin Company ID lookup</a>",
    )),
    '#default_value' => isset($settings['company_id']) ? $settings['company_id'] : NULL,
    '#required' => TRUE,
  );
  return $form;
}