You are here

public static function DrupalOAuthToken::load in OAuth 1.0 6.3

Same name and namespace in other branches
  1. 7.4 includes/DrupalOAuthToken.inc \DrupalOAuthToken::load()
  2. 7.3 includes/DrupalOAuthToken.inc \DrupalOAuthToken::load()

Deprecated - Gets the token with the specified key

Parameters

string $key: The key of the token to get

bool $provider_token: Whether the token to load is a provider token.

Return value

DrupalOAuthToken The loaded token object or FALSE if load failed

1 call to DrupalOAuthToken::load()
oauth_common_page_authorized in ./oauth_common.pages.inc
Menu callback for when something has been authorized - used in both client and provider flow

File

includes/DrupalOAuthToken.inc, line 143

Class

DrupalOAuthToken

Code

public static function load($key, $provider_token = TRUE) {
  return DrupalOAuthToken::loadByKey($key, !$provider_token, FALSE);
}