You are here

function zoomapi_get_user_settings in Zoom API 7.2

Get Zoom User settings.

File

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

Code

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