You are here

function oauth2_server_token_load_multiple in OAuth2 Server 7

Loads multiple token entities.

Parameters

string[] $tokens: An array of tokens.

Return value

OAuth2ServerToken[] An array of token entities indexed by their ids.

File

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

Code

function oauth2_server_token_load_multiple($tokens) {
  return oauth2_server_entity_load_by_properties('oauth2_server_token', array(
    'token' => $tokens,
  ));
}