You are here

function bbb_block in BigBlueButton 6

Implement HOOK_block().

File

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

Code

function bbb_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks[0] = array(
      'info' => t('Meeting details'),
      'weight' => 0,
      'status' => 1,
      'region' => 'left',
    );
    return $blocks;
  }
  elseif ($op == 'configure' && $delta == 0) {
  }
  elseif ($op == 'save' && $delta == 0) {
  }
  elseif ($op == 'view') {
    switch ($delta) {
      case 0:
        $block = array(
          'subject' => t('Meeting details'),
          'content' => bbb_block_meeting(),
        );
        break;
    }
    return $block;
  }
}