You are here

function oauth2_server_get_properties in OAuth2 Server 7

Entity Metadata getter callback: Returns the matching id for a computed field.

2 string references to 'oauth2_server_get_properties'
OAuth2ServerAuthorizationCodeMetadataController::entityPropertyInfo in ./oauth2_server.info.inc
OAuth2ServerTokenMetadataController::entityPropertyInfo in ./oauth2_server.info.inc

File

./oauth2_server.module, line 731
Provides OAuth2 server functionality.

Code

function oauth2_server_get_properties($entity, array $options, $name) {
  switch ($name) {
    case 'client':
      return $entity->client_id;
    case 'user':
      return $entity->uid;
  }
}