You are here

function audit_log_hybridauth_hybridauth_user_insert in Audit Log 7

Implements hook_hybridauth_user_insert().

Write a watchdog log entry when HybridAuth causes user creation.

File

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

Code

function audit_log_hybridauth_hybridauth_user_insert($account, $data) {
  audit_log($account, 'user', 'hybridauth-user-created', $account, NULL, REQUEST_TIME, array(
    'message' => format_string('Created @name.', array(
      '@name' => $account->name,
    )),
  ));
}