You are here

function oauth_common_consumer_load in OAuth 1.0 7.3

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

Menu system wildcard loader for provider consumers.

Parameters

string $key:

File

./oauth_common.module, line 154

Code

function oauth_common_consumer_load($csid) {
  $consumer = $csid ? DrupalOAuthConsumer::loadById($csid, TRUE) : FALSE;
  if (!$consumer) {
    $consumer = FALSE;
  }
  return $consumer;
}