MDL-26140 hide unfinished experimental DTL pages
[moodle.git] / admin / settings / subsystems.php
CommitLineData
11b749ca 1<?php
90658eef 2
3if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
4
5cf5cc9b 5 $optionalsubsystems->add(new admin_setting_configcheckbox('enableoutcomes', get_string('enableoutcomes', 'grades'), get_string('enableoutcomes_help', 'grades'), 0));
1bcb7eb5 6 $optionalsubsystems->add(new admin_setting_configcheckbox('usecomments', get_string('enablecomments', 'admin'), get_string('configenablecomments', 'admin'), 1));
90658eef 7
8 $optionalsubsystems->add(new admin_setting_configcheckbox('usetags', get_string('usetags','admin'),get_string('configusetags', 'admin'), '1'));
9
10 $optionalsubsystems->add(new admin_setting_configcheckbox('enablenotes', get_string('enablenotes', 'notes'), get_string('configenablenotes', 'notes'), 1));
11
12 $optionalsubsystems->add(new admin_setting_configcheckbox('enableportfolios', get_string('enabled', 'portfolio'), get_string('enableddesc', 'portfolio'), 0));
13
884f46c9 14 $optionalsubsystems->add(new admin_setting_configcheckbox('enablewebservices', get_string('enablewebservices', 'admin'), get_string('configenablewebservices', 'admin'), 0));
15
90658eef 16 $optionalsubsystems->add(new admin_setting_configcheckbox('messaging', get_string('messaging', 'admin'), get_string('configmessaging','admin'), 1));
17
a813a748
AD
18 $optionalsubsystems->add(new admin_setting_configcheckbox('messaginghidereadnotifications', get_string('messaginghidereadnotifications', 'admin'), get_string('configmessaginghidereadnotifications','admin'), 0));
19
212badff
AD
20 $options = array(DAYSECS=>get_string('secondstotime86400'), WEEKSECS=>get_string('secondstotime604800'), 2620800=>get_string('nummonths', 'moodle', 1), 15724800=>get_string('nummonths', 'moodle', 6),0=>get_string('never'));
21 $optionalsubsystems->add(new admin_setting_configselect('messagingdeletereadnotificationsdelay', get_string('messagingdeletereadnotificationsdelay', 'admin'), get_string('configmessagingdeletereadnotificationsdelay', 'admin'), 604800, $options));
22
90658eef 23 $optionalsubsystems->add(new admin_setting_configcheckbox('enablestats', get_string('enablestats', 'admin'), get_string('configenablestats', 'admin'), 0));
24
25 $optionalsubsystems->add(new admin_setting_configcheckbox('enablerssfeeds', get_string('enablerssfeeds', 'admin'), get_string('configenablerssfeeds', 'admin'), 0));
26
ca497f4f 27 $optionalsubsystems->add(new admin_setting_bloglevel('bloglevel', get_string('bloglevel', 'admin'),
90658eef 28 get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
29 4 => get_string('siteblogs','blog'),
90658eef 30 1 => get_string('personalblogs','blog'),
31 0 => get_string('disableblogs','blog'))));
32
33 $options = array('off'=>get_string('off', 'mnet'), 'strict'=>get_string('on', 'mnet'));
34 $optionalsubsystems->add(new admin_setting_configselect('mnet_dispatcher_mode', get_string('net', 'mnet'), get_string('configmnet', 'mnet'), 'off', $options));
35
82bd6a5e 36 // Conditional activities: completion and availability
11b749ca
PS
37 $optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion',
38 get_string('enablecompletion','completion'),
82bd6a5e 39 get_string('configenablecompletion','completion'), 0));
82bd6a5e 40 $optionalsubsystems->add(new admin_setting_configcheckbox('enableavailability',
41 get_string('enableavailability','condition'),
42 get_string('configenableavailability','condition'), 0));
bce59524
DM
43
44 $optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', get_string('enableplagiarism','plagiarism'), get_string('configenableplagiarism','plagiarism'), 0));
90658eef 45}