function janrain_capture_mapping_exists in Janrain Registration 7
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_mapping_exists()
- 7.2 janrain_capture.module \janrain_capture_mapping_exists()
- 7.3 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_oauth in ./
janrain_capture.pages.inc - Callback for the janrain_capture/oauth menu item. This serves as the redirect_uri Capture redirects the user to and performs the authentication.
- janrain_capture_ui_form_user_profile_form_alter in ./
janrain_capture_ui.module - Implements hook_form_FROM_ID_alter().
File
- ./
janrain_capture.module, line 196 - 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();
}