print_simple_box("Resources", $align="CENTER", $width="100%", $color="$THEME->cellheading");
- if ($readings = list_all_readings($course->id, "timemodified DESC", 0, true)) {
+ if ($readings = reading_list_all_readings($course->id, "timemodified DESC", 0, true)) {
foreach ($readings as $reading) {
$readingdata[] = $reading;
$readingicon[] = "<IMG SRC=\"../mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"Reading\">";
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<TR>
<TD VALIGN="TOP" NOWRAP>
- <? $readings = list_all_readings();
+ <? $readings = reading_list_all_readings();
if ($site->newsitems > 0 or $readings or isediting($site->id)) {
if (isset($USER->id)) {
$SESSION->fromdiscussion = "$CFG->wwwroot";
- if (is_subscribed($USER->id, $newsforum->id)) {
+ if (forum_is_subscribed($USER->id, $newsforum->id)) {
$subtext = get_string("unsubscribe", "forum");
} else {
$subtext = get_string("subscribe", "forum");