You are here

function openid_user in Drupal 6

Implementation of hook_user().

File

modules/openid/openid.module, line 64
Implement OpenID Relying Party support for Drupal

Code

function openid_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'insert' && isset($_SESSION['openid']['values'])) {

    // The user has registered after trying to login via OpenID.
    if (variable_get('user_email_verification', TRUE)) {
      drupal_set_message(t('Once you have verified your email address, you may log in via OpenID.'));
    }
    unset($_SESSION['openid']);
  }
}