function _oauth_common_version in OAuth 1.0 7.3
Same name and namespace in other branches
- 6.3 oauth_common.module \_oauth_common_version()
- 7.4 oauth_common.module \_oauth_common_version()
Finds the current version of the OAuth module, used in eg. user agents
Return value
string
1 call to _oauth_common_version()
- DrupalOAuthClient::get in includes/
DrupalOAuthClient.inc - Make an OAuth request.
File
- ./
oauth_common.module, line 579
Code
function _oauth_common_version() {
static $version;
if (!isset($version)) {
$info = db_query("SELECT info FROM {system} WHERE name = 'oauth_common'")
->fetchField();
$info = $info ? unserialize($info) : FALSE;
if (!$info || empty($info['version'])) {
$version = OAUTH_COMMON_CODE_BRANCH;
}
else {
$version = $info['version'];
}
}
return $version;
}