I've changed hiddentopics to hiddensections ...
</td>
</tr>
<tr valign=top>
- <td align="right"><P><?php print_string("hiddentopics") ?>:</td>
+ <td align="right"><P><?php print_string("hiddensections") ?>:</td>
<td><?php
unset($choices);
- $choices["0"] = get_string("hiddentopicscollapsed");
- $choices["1"] = get_string("hiddentopicsinvisible");
- choose_from_menu ($choices, "hiddentopics", $form->hiddentopics, "");
- helpbutton("coursehiddentopics", get_string("hiddentopics")); ?>
+ $choices["0"] = get_string("hiddensectionscollapsed");
+ $choices["1"] = get_string("hiddensectionsinvisible");
+ choose_from_menu ($choices, "hiddensections", $form->hiddensections, "");
+ helpbutton("coursehiddensections", get_string("hiddensections")); ?>
</td>
</tr>
<tr valign=top>
--- /dev/null
+<p align="center"><b>Course hidden sections</b></p>
+
+<P>This option allows you to decide how the hidden sections in your course
+ are displayed to students.</p>
+
+<p>By default, a small area is shown (in collapsed form, usually gray) to
+ indicate where the hidden section is, though they still can not actually see
+ the hidden activities and texts. This is particularly useful
+ in the Weekly format, so that non-class weeks are clear.</p>
+
+<p>If you choose, these can be completely hidden, so that students
+ don't even know sections of the course are hidden</p>
+
+++ /dev/null
-<p align="center"><b>Course hidden topics</b></p>
-
-<P>This option allows you to decide how the hidden topics in your course
- are going to be displayed to students.</p>
-
-<p>They can be completely hidden or shown in collapsed form.</p>
-
-<p>This setting only affects courses using the "Topics" format.</p>
-
$string['helpwiki'] = 'How to write Wiki text';
$string['helpwriting'] = 'Write carefully';
$string['hide'] = 'Hide';
-$string['hiddentopics'] = 'Hidden Topics';
-$string['hiddentopicscollapsed'] = 'Hidden topics are shown in collapsed form';
-$string['hiddentopicsinvisible'] = 'Hidden topics are completely invisible';
+$string['hiddensections'] = 'Hidden Topics';
+$string['hiddensectionscollapsed'] = 'Hidden sections are shown in collapsed form';
+$string['hiddensectionsinvisible'] = 'Hidden sections are completely invisible';
$string['hidepicture'] = 'Hide picture';
$string['hits'] = 'Hits';
$string['hitsoncourse'] = 'Hits on $a->coursename by $a->username';
table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
}
- if ($oldversion < 2004042703) {
- set_config("enablerssfeeds",0);
- }
-
if ($oldversion < 2004042900) {
execute_sql(" ALTER TABLE `{$CFG->prefix}course` DROP `showrecent` ");
}
+ if ($oldversion < 2004043001) { /// Change hiddentopics to hiddensections
+ table_column("course", "hiddentopics", "hiddensections", "integer", "2", "unsigned", "0", "not null");
+ }
+
return $result;
}
`maxbytes` int(10) unsigned NOT NULL default '0',
`showreports` int(4) unsigned NOT NULL default '0',
`visible` int(1) unsigned NOT NULL default '1',
- `hiddentopics` int(1) unsigned NOT NULL default '0',
+ `hiddensections` int(2) unsigned NOT NULL default '0',
`groupmode` int(4) unsigned NOT NULL default '0',
`groupmodeforce` int(4) unsigned NOT NULL default '0',
`lang` varchar(10) NOT NULL default '',
}
if ($oldversion < 2004042701) { /// Add hiddentopics field to control hidden topics behaviour
- table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
+ #table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
+ #See 'hiddensections' further down
}
if ($oldversion < 2004042702) { /// Add a format field for the description
table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
}
- if ($oldversion < 2004042703) {
- set_config("enablerssfeeds",0);
+ if ($oldversion < 2004043001) { /// Add hiddentopics field to control hidden topics behaviour
+ table_column("course", "", "hiddensections", "integer", "2", "unsigned", "0", "not null", "visible");
}
return $result;
maxbytes integer NOT NULL default '0',
showreports integer NOT NULL default '0',
visible integer NOT NULL default '1',
- hiddentopics integer NOT NULL default '0',
+ hiddensections integer NOT NULL default '0',
groupmode integer NOT NULL default '0',
groupmodeforce integer NOT NULL default '0',
lang varchar(10) NOT NULL default '',
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
-$version = 2004042900; // The current version is a date (YYYYMMDDXX)
+$version = 2004043001; // The current version is a date (YYYYMMDDXX)
$release = "1.3 development"; // User-friendly version number