This repository was archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathsettings.php
More file actions
50 lines (45 loc) · 1.91 KB
/
settings.php
File metadata and controls
50 lines (45 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/* Copyright Panopto 2009 - 2013 / With contributions from Spenser Jones (sjones@ambrose.edu)
*
* This file is part of the Panopto plugin for Moodle.
*
* The Panopto plugin for Moodle is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The Panopto plugin for Moodle is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the Panopto plugin for Moodle. If not, see <http://www.gnu.org/licenses/>.
*/
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
$settings->add(
new admin_setting_configtext(
'block_panopto_instance_name',
get_string('block_global_instance_name', 'block_panopto'),
get_string('block_global_instance_description', 'block_panopto'),
'moodle',
PARAM_TEXT));
$settings->add(
new admin_setting_configtext(
'block_panopto_server_name',
get_string('block_global_hostname', 'block_panopto'),
'',
'',
PARAM_TEXT));
$settings->add(
new admin_setting_configtext(
'block_panopto_application_key',
get_string('block_global_application_key', 'block_panopto'),
'',
'',
PARAM_TEXT));
$link ='<a href="'.$CFG->wwwroot.'/blocks/panopto/provision_course.php">' . get_string('block_global_add_courses', 'block_panopto') . '</a>';
$settings->add(new admin_setting_heading('block_panopto_add_courses', '', $link));
}
/* End of file settings.php */