Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
//
17
/**
18
 * Defines global settings for the Message My Teacher block
19
 *
20
 * Allows selection of roles to be considered "Teachers", and thus displayed in the block
21
 *
22
 * @package    block_messageteacher
23
 * @author     Mark Johnson <mark@barrenfrozenwasteland.com>
24
 * @copyright  2010-2012 Tauntons College, UK. 2012 onwards Mark Johnson.
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 */
27
 
28
defined('MOODLE_INTERNAL') || die();
29
 
30
$settings->add(new admin_setting_pickroles('block_messageteacher/roles',
31
                                           get_string('teachersinclude', 'block_messageteacher'),
32
                                           get_string('rolesdesc', 'block_messageteacher'),
33
                                           array('moodle/legacy:teacher'),
34
                                           PARAM_TEXT));
35
 
36
$settings->add(new admin_setting_configcheckbox('block_messageteacher/groups',
37
                                           get_string('enablegroups', 'block_messageteacher'),
38
                                           get_string('groupsdesc', 'block_messageteacher'),
39
                                           0));
40
 
41
$settings->add(new admin_setting_configcheckbox('block_messageteacher/showuserpictures',
42
                                           get_string('showuserpictures', 'block_messageteacher'),
43
                                           get_string('showuserpicturesdesc', 'block_messageteacher'),
44
                                           0));
45
 
46
$settings->add(new admin_setting_configcheckbox('block_messageteacher/includecoursecat',
47
                                           get_string('includecoursecat', 'block_messageteacher'),
48
                                           get_string('includecoursecatdesc', 'block_messageteacher'),
49
                                           0));
50
 
51
$settings->add(new admin_setting_configcheckbox('block_messageteacher/appendurl',
52
                                           get_string('appendurl', 'block_messageteacher'),
53
                                           get_string('appendurldesc', 'block_messageteacher'),
54
                                           0));