function zoomapi_update_user in Zoom API 7.2
Update Zoom user.
2 calls to zoomapi_update_user()
- zoomapi_update_7207 in ./
zoomapi.install - Add timezone to zoom user accounts.
- zoomapi_zoomapi_user_create in ./
zoomapi.module - Implements hook_zoomapi_user_create().
File
- ./
zoomapi.module, line 389 - Main file for the Zoom API module.
Code
function zoomapi_update_user($account, array $user_info) {
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 update Zoom account for user !uid. Unable to lookup Zoom account ID.', [
'!uid' => $uid,
], WATCHDOG_ERROR);
return FALSE;
}
return zoomapi_api_update_user($uid, $zoom_user_id, $user_info);
}