You are here

public function OAuth2HTTPSFetcher::configForm in Feeds OAuth 7

Same name and namespace in other branches
  1. 6 OAuth2HTTPSFetcher.inc \OAuth2HTTPSFetcher::configForm()

Add form options.

Overrides OAuthHTTPFetcher::configForm

File

./OAuth2HTTPSFetcher.inc, line 25
Definition of the import batch object created on the fetching stage by OAuth2HTTPSFetcher.

Class

OAuth2HTTPSFetcher
Support OAuth 2.0 authentication.

Code

public function configForm(&$form_state) {
  $form = parent::configForm($form_state);
  $form['scope'] = array(
    '#type' => 'textarea',
    '#title' => t('Scope'),
    '#description' => t('Scope of the authorization request, one per line or comma-separated.'),
    '#default_value' => $this->config['scope'],
  );
  return $form;
}