You are here

function zoomapi_update_user_settings in Zoom API 7.2

Update Zoom User settings.

File

./zoomapi.module, line 568
Main file for the Zoom API module.

Code

function zoomapi_update_user_settings($account, array $settings) {
  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 user settings for user !uid. Unable to lookup Zoom account ID.', [
      '!uid' => $uid,
    ], WATCHDOG_ERROR);
    return [];
  }
  return zoomapi_api_update_user_settings($zoom_user_id, $settings);
}