You are here

function janrain_capture_mapping_exists in Janrain Registration 7.3

Same name and namespace in other branches
  1. 7.4 janrain_capture.module \janrain_capture_mapping_exists()
  2. 7 janrain_capture.module \janrain_capture_mapping_exists()
  3. 7.2 janrain_capture.module \janrain_capture_mapping_exists()

Helper function to determine if a user is associated with a Capture account.

2 calls to janrain_capture_mapping_exists()
janrain_capture_form_user_profile_form_alter in includes/janrain_capture.fancybox.inc
Implements hook_form_FORM_ID_alter().
janrain_capture_oauth in includes/janrain_capture.endpoints.inc
Callback for the janrain_capture/oauth menu item. This serves as the redirect_uri Capture redirects the user to and performs the authentication.

File

./janrain_capture.module, line 274
This module implements authentication endpoints for Janrain Capture.

Code

function janrain_capture_mapping_exists($uid) {

  // Check to see if this user is already mapped to a Capture uuid.
  return (bool) db_query("SELECT 1 FROM {authmap} WHERE module = 'janrain_capture' AND uid = :uid", array(
    ':uid' => $uid,
  ))
    ->fetchField();
}