From 1c76446ff2967542afc9f1ec963f6444593b3c5e Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 10 May 2016 11:05:08 +0200 Subject: [PATCH] Add course setting "bbb_enable_conference_in_groups" --- plugin/bbb/lib/bbb.lib.php | 3 +++ plugin/bbb/lib/bbb_plugin.class.php | 14 +++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/plugin/bbb/lib/bbb.lib.php b/plugin/bbb/lib/bbb.lib.php index 8c7597521a..827df0fe0f 100755 --- a/plugin/bbb/lib/bbb.lib.php +++ b/plugin/bbb/lib/bbb.lib.php @@ -55,6 +55,9 @@ class bbb if ($this->groupSupport) { $this->groupSupport = (bool) $plugin->get('enable_conference_in_course_groups'); + if ($this->groupSupport) { + $this->groupSupport = api_get_course_setting('bbb_enable_conference_in_groups') === '1'; + } } if ($bbbPlugin === true) { diff --git a/plugin/bbb/lib/bbb_plugin.class.php b/plugin/bbb/lib/bbb_plugin.class.php index fd7bb6df51..846bada9f6 100755 --- a/plugin/bbb/lib/bbb_plugin.class.php +++ b/plugin/bbb/lib/bbb_plugin.class.php @@ -17,12 +17,16 @@ class BBBPlugin extends Plugin public $isCoursePlugin = true; // When creating a new course this settings are added to the course - public $course_settings = array( - array( + public $course_settings = [ + [ 'name' => 'big_blue_button_record_and_store', - 'type' => 'checkbox' - ) - ); + 'type' => 'checkbox', + ], + [ + 'name' => 'bbb_enable_conference_in_groups', + 'type' => 'checkbox', + ] + ]; /** * BBBPlugin constructor.