MDL-34353 Javascript: Allow chooser dialogues to fall back to non-JS version
[moodle.git] / mod / imscp / settings.php
blobeec0bdc6054cfd9f35d5f79a29a9cb6391aa7b98
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * IMS CP module admin settings and defaults
21 * @package mod_imscp
22 * @copyright 2009 Petr Skoda {@link http://skodak.org}
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26 defined('MOODLE_INTERNAL') || die;
28 if ($ADMIN->fulltree) {
30 //--- general settings -----------------------------------------------------------------------------------
31 $settings->add(new admin_setting_configcheckbox('imscp/requiremodintro', get_string('requiremodintro', 'admin'),
32 get_string('configrequiremodintro', 'admin'), 1));
34 //--- modedit defaults -----------------------------------------------------------------------------------
35 $settings->add(new admin_setting_heading('imscpmodeditdefaults', get_string('modeditdefaults', 'admin'), get_string('condifmodeditdefaults', 'admin')));
36 $options = array('-1'=>get_string('all'), '0'=>get_string('no'), '1'=>'1', '2'=>'2', '5'=>'5', '10'=>'10', '20'=>'20');
37 $settings->add(new admin_setting_configselect_with_advanced('imscp/keepold',
38 get_string('keepold', 'imscp'), get_string('keepoldexplain', 'imscp'),
39 array('value'=>1, 'adv'=>false), $options));