4 $numberofsections = array();
6 for ($i = 1; $i < 53; $i++
){
7 $numberofsections[$i] = $i;
11 for ($i = 1; $i < 11; $i++
){
15 $selected = array(1 => array(22,2),
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);