You are here

function audit_log_hybridauth_hybridauth_identity_added in Audit Log 7

Implements hook_hybridauth_identity_added().

Write a watchdog log entry when a HybridAuth identity is added to a user.

File

modules/audit_log_hybridauth/audit_log_hybridauth.module, line 23
HybridAuth related hook implemenations for the Audit log module.

Code

function audit_log_hybridauth_hybridauth_identity_added($account, $data) {
  audit_log($account, 'user', 'hybridauth-user-identity-added', $account, NULL, REQUEST_TIME, array(
    'message' => format_string('Added identity to @name.', array(
      '@name' => $account->name,
    )),
  ));
}