You are here

public function OAuthHTTPFetcher::configDefaults in Feeds OAuth 7

Same name and namespace in other branches
  1. 6 OAuthHTTPFetcher.inc \OAuthHTTPFetcher::configDefaults()

Declare defaults.

1 call to OAuthHTTPFetcher::configDefaults()
OAuth2HTTPSFetcher::configDefaults in ./OAuth2HTTPSFetcher.inc
Declare defaults.
1 method overrides OAuthHTTPFetcher::configDefaults()
OAuth2HTTPSFetcher::configDefaults in ./OAuth2HTTPSFetcher.inc
Declare defaults.

File

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

Class

OAuthHTTPFetcher
Support OAuth authentication.

Code

public function configDefaults() {
  global $user;
  return array(
    'authenticator' => 'feeds_oauth_get_tokens',
    'site_id' => '',
    'consumer_key' => '',
    'consumer_secret' => '',
    'request_token_url' => '',
    'access_token_url' => '',
    'authorize_url' => '',
    'method' => 'post',
    'uid' => $user->uid,
  ) + parent::configDefaults();
}