function zoomapi_update_user_email in Zoom API 7.2
Update Zoom user email.
@todo "Domain name doesn't match, please contact Zoom customer support to set managed domains for your account"
File
- ./
zoomapi.module, line 411 - Main file for the Zoom API module.
Code
function zoomapi_update_user_email($account, $email) {
module_load_include('inc', 'zoomapi', 'zoomapi.api');
$uid = is_numeric($account) ? $account : $account->uid;
$zoom_user_id = zoomapi_get_zoom_user_id($uid);
if (!$zoom_user_id) {
watchdog(__FUNCTION__, 'Unable to change Zoom account email to @email for user !uid. Unable to lookup Zoom account ID.', [
'@email' => $email,
'!uid' => $uid,
], WATCHDOG_ERROR);
return FALSE;
}
return zoomapi_api_update_user_email($zoom_user_id, $email);
}