function janrain_capture_mapping_exists in Janrain Registration 7.2
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_mapping_exists()
- 7 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.
3 calls to janrain_capture_mapping_exists()
- janrain_capture_form_user_profile_form_alter in ./
janrain_capture.module - Implements hook_form_FORM_ID_alter().
- janrain_capture_page_alter in ./
janrain_capture.module - Implements hook_page_alter().
- _janrain_capture_setup_local_account in includes/
janrain_capture.signin.inc - Helper function to set up the Drupal account and run some checks for the oauth endpoint
File
- ./
janrain_capture.module, line 300 - 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();
}