You are here

function oauth2_server_set_properties in OAuth2 Server 7

Entity Metadata setter callback: Sets the matching id for a computed field.

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

File

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

Code

function oauth2_server_set_properties($entity, $name, $value) {
  switch ($name) {
    case 'client':
      $entity->client_id = $value;
      break;
    case 'user':
      $entity->uid = $value;
      break;
  }
}