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'
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;
}
}