You are here

function oauth2_server_oauth2_server_client_delete in OAuth2 Server 7

Implements hook_oauth2_server_client_delete().

Clean up related data when the client has been deleted.

File

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

Code

function oauth2_server_oauth2_server_client_delete($client) {
  db_delete('oauth2_server_jti')
    ->condition('client_id', $client->client_id)
    ->execute();

  // @todo Figure out how to clean up tokens and codes without timeouts.
}