function oauth_common_can_authorize_consumer in OAuth 1.0 7.3
Same name and namespace in other branches
- 6.3 oauth_common.module \oauth_common_can_authorize_consumer()
- 7.4 oauth_common.module \oauth_common_can_authorize_consumer()
Access callback that checks if a user may create authorizations in the consumers context.
Parameters
DrupalOAuthConsumer $consumer:
Return value
bool
1 string reference to 'oauth_common_can_authorize_consumer'
- oauth_common_providerui_menu in ./
oauth_common_providerui.module - Implements hook_menu().
File
- ./
oauth_common.module, line 385
Code
function oauth_common_can_authorize_consumer($consumer) {
return user_access(sprintf('oauth authorize consumers in %s', $consumer->context));
}