You are here

function zoomapi_user_connect_accounts in Zoom API 7

Connect account with zoom account.

There may be cases where a user account exists but the zoomapi_user_id is not set on the Drupal user account data property. This function attempts to check if a zoom user account exists that would link to this user account and update the data properties.

@todo

Parameters

object $account: The Drupal user account to check if matching Zoom API account exists.

File

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

Code

function zoomapi_user_connect_accounts($account) {
  if (!empty($account->data['zoomapi_user_id'])) {
    return TRUE;
  }
}