function _email_already_exist in Facebook Connect 8.2
Same name and namespace in other branches
- 7.2 fbconnect.module \_email_already_exist()
Check the users table to see if the email is already in the drupal system returns uid of user with the email.
4 calls to _email_already_exist()
- fbconnect_login_add_user_afterlogin_submit in fbconnect_login/
fbconnect_login.module - Add the user to the fbconnect_users table if they logged in with Facebook
- fbconnect_login_authorize_page in fbconnect_login/
fbconnect_login.pages.inc - Menu callback. Called when user perform Facebook registration
- fbconnect_login_autoconnect_form_submit in fbconnect_login/
fbconnect_login.module - Submit handler for autoconnect form.
- fbconnect_login_login_page in fbconnect_login/
fbconnect_login.pages.inc - Menu callback. Logs user into site or redirects.
File
- ./
fbconnect.module, line 361 - @todo.
Code
function _email_already_exist($email) {
$query = db_select('users', 'u');
$query
->fields('u', array(
'uid',
));
$query
->condition('mail', $email, '=');
$query
->countQuery();
return $query
->execute()
->fetchField();
}