You are here

function oauth_common_provider_token_load in OAuth 1.0 7.3

Same name and namespace in other branches
  1. 6.3 oauth_common.module \oauth_common_provider_token_load()
  2. 7.4 oauth_common.module \oauth_common_provider_token_load()

Menu system wildcard loader for provider tokens.

Parameters

string $key:

File

./oauth_common.module, line 167

Code

function oauth_common_provider_token_load($tid) {
  $token = $tid ? DrupalOAuthToken::loadByID($tid) : FALSE;
  if (!$token) {
    $token = FALSE;
  }
  return $token;
}