function zoomapi_user_email_exists in Zoom API 7.2
Check if email in use.
Checks against local table, however option to check against API.
2 calls to zoomapi_user_email_exists()
- zoomapi_create_user in ./
zoomapi.module - Create Zoom user.
- zoomapi_user_insert in ./
zoomapi.module - Implements hook_user_insert().
File
- ./
zoomapi.module, line 277 - Main file for the Zoom API module.
Code
function zoomapi_user_email_exists($email, $api_check = FALSE) {
try {
$exists = FALSE;
if (!$api_check) {
$user_info = zoomapi_get_zoom_user_tracker_info($email);
$exists = !empty($user_info['email']);
}
else {
$exists = zoomapi_api_user_email_exists($email);
}
return $exists;
} catch (\Exception $e) {
return FALSE;
}
}