You are here

function oauth2_server_authorization_code_load_multiple in OAuth2 Server 7

Loads multiple authorization code entities.

Parameters

string[] $codes: An array of codes.

Return value

OAuth2ServerAuthorizationCode[] An array of authorization code entities indexed by their ids.

File

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

Code

function oauth2_server_authorization_code_load_multiple($codes) {
  return oauth2_server_entity_load_by_properties('oauth2_server_authorization_code', array(
    'code' => $codes,
  ));
}