You are here

public static function DrupalOAuthConsumer::load in OAuth 1.0 7.4

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

Deprecated - Gets the consumer with the specified key

Parameters

string $key: The key of the consumer to get

bool $provider_consumer: Optional. Whether the consumer we're about to load is a provider or consumer consumer. Defaults to TRUE.

Return value

DrupalOAuthConsumer The loaded consumer object or FALSE if load failed

File

includes/DrupalOAuthConsumer.inc, line 147

Class

DrupalOAuthConsumer

Code

public static function load($key, $provider_consumer = TRUE) {
  return DrupalOAuthConsumer::loadProviderByKey($key, $provider_consumer);
}