function zoomapi_join_meeting in Zoom API 7.2
Join Meeting.
Parameters
array|string $zoom_meeting: The meeting_id or array.
File
- ./
zoomapi.module, line 730 - Main file for the Zoom API module.
Code
function zoomapi_join_meeting($zoom_meeting) {
global $user;
if (is_numeric($zoom_meeting)) {
$zoom_meeting = zoomapi_get_meeting($zoom_meeting);
}
if ($zoom_user_id = zoomapi_get_zoom_user_id($user->uid)) {
$url = $zoom_user_id && $zoom_user_id == $zoom_meeting['host_id'] ? $zoom_meeting['start_url'] : $zoom_meeting['join_url'];
watchdog(__FUNCTION__, 'User (uid: !uid) joined meeting "@topic" (id: !meeting_id).', [
'!uid' => $user->uid,
'@topic' => $zoom_meeting['topic'],
'!meeting_id' => $zoom_meeting['id'],
], WATCHDOG_INFO);
drupal_goto($url, [
'external' => TRUE,
]);
}
drupal_goto();
}