You are here

function bbb_end_confirm_form_submit in BigBlueButton 7

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

File

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

Code

function bbb_end_confirm_form_submit($form, &$form_state) {
  $node = node_load($form_state['values']['nid']);
  $request = bbb_meeting_end($node);
  if ($request === FALSE) {
    drupal_set_message(t('There was an error terminating the meeting.'), 'error');
  }
  else {
    drupal_set_message(t('The meeting has been terminated.'));
  }
  drupal_goto('node/' . $node->nid);
}