mod-assignment MDL-23848 Users can now view previously submit assignments if they...
[moodle.git] / blocks / section_links / settings.php
blob9b0d1dad2606d7a605748622a59016445c2f0140
1 <?php
2 $configs = array();
4 $numberofsections = array();
6 for ($i = 1; $i < 53; $i++){
7 $numberofsections[$i] = $i;
9 $increments = array();
11 for ($i = 1; $i < 11; $i++){
12 $increments[$i] = $i;
15 $selected = array(1 => array(22,2),
16 2 => array(40,5));
18 for($i = 1; $i < 3; $i++){
19 $configs[] = new admin_setting_configselect('numsections'.$i, get_string('numsections'.$i, 'block_section_links'),
20 get_string('numsectionsdesc'.$i, 'block_section_links'),
21 $selected[$i][0], $numberofsections);
23 $configs[] = new admin_setting_configselect('incby'.$i, get_string('incby'.$i, 'block_section_links'),
24 get_string('incbydesc'.$i, 'block_section_links'),
25 $selected[$i][1], $increments);
28 foreach ($configs as $config) {
29 $config->plugin = 'blocks/section_links';
30 $settings->add($config);