function zoomapi_get_user_from_zoom_userid in Zoom API 7.2
Get Drupal uid from Zoom user ID.
File
- ./
zoomapi.module, line 507 - Main file for the Zoom API module.
Code
function zoomapi_get_user_from_zoom_userid($zoom_user_id) {
$uid = db_query("\n SELECT\n uid\n FROM {zoomapi_users}\n WHERE zoom_user_id = :zoom_user_id\n AND realm = :realm\n ", [
':zoom_user_id' => $zoom_user_id,
':realm' => zoomapi_realm(),
])
->fetchField();
return $uid ?: 0;
}