2010-08-01 12:15:46 +00:00
|
|
|
<?php
|
2010-12-08 16:04:20 +01:00
|
|
|
// This file is part of Book module for Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Book plugin settings
|
|
|
|
*
|
|
|
|
* @package mod
|
|
|
|
* @subpackage book
|
|
|
|
* @copyright 2004-2010 Petr Skoda {@link http://skodak.org}
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
2008-03-25 20:19:49 +00:00
|
|
|
|
2010-12-08 15:41:55 +01:00
|
|
|
defined('MOODLE_INTERNAL') || die;
|
2008-03-25 20:19:49 +00:00
|
|
|
|
2010-12-08 15:41:55 +01:00
|
|
|
if ($ADMIN->fulltree) {
|
2008-03-25 20:19:49 +00:00
|
|
|
|
2010-12-08 15:41:55 +01:00
|
|
|
$choices = array('140'=>'140', '160'=>'160', '180'=>'180', '200'=>'200', '220'=>'220', '240'=>'240', '260'=>'260', '280'=>'280', '300'=>'300');
|
2011-01-16 11:28:12 +01:00
|
|
|
$settings->add(new admin_setting_configselect('book_tocwidth', get_string('book_tocwidth', 'mod_book'), get_string('tocwidth', 'book'), '180', $choices));
|
2010-08-01 13:10:36 +00:00
|
|
|
|
2010-12-08 15:41:55 +01:00
|
|
|
}
|