You are here

function bbb_create_meeting in BigBlueButton 7

Same name and namespace in other branches
  1. 6 bbb.module \bbb_create_meeting()

Create meeting

2 calls to bbb_create_meeting()
bbb_meeting_attend in ./bbb.module
Redirect to big blue button instance; Menu callback
bbb_meeting_moderate in ./bbb.module
Redirect to big blue button instance; Menu callback

File

./bbb.module, line 656
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

function bbb_create_meeting($node, $params = array()) {
  $params += bbb_init_meeting($node, $params);

  // we need to change the "record" param (0 or 1 in the database), to "true" if 1
  if ($params['record'] == 1) {
    $params['record'] = 'true';
  }
  else {
    unset($params['record']);
  }
  if ($data = bbb_api_create($params)) {
    return $data;
  }
  return FALSE;
}