You are here

oauth.module in OAuth 1.0 8

Same filename and directory in other branches
  1. 8.2 oauth.module
  2. 6 oauth.module

Hook implementations for OAuth module.

File

oauth.module
View source
<?php

/**
 * @file
 * Hook implementations for OAuth module.
 */

/**
 * Implements hook_user_delete().
 */
function oauth_user_delete(Drupal\Core\Entity\EntityInterface $user) {

  // Delete all consumers related to a user.
  db_delete('oauth_consumer')
    ->condition('uid', $user
    ->id())
    ->execute();
}

Functions

Namesort descending Description
oauth_user_delete Implements hook_user_delete().