Skip to content

Commit

Permalink
Preparing rss stuff to be showed in lists of activities...
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 7, 2004
1 parent add18b1 commit 65f1df6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rss/rsslib.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?PHP // $Id$
// This file contains all the common stuff to be used in RSS System

//This function prints the icon (from theme) with the link to rss/file.php
function rss_print_link($courseid, $userid, $modulename, $id, $tooltiptext="") {
//This function returns the icon (from theme) with the link to rss/file.php
function rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext="") {

global $CFG, $THEME, $USER;

Expand All @@ -25,10 +25,16 @@ function rss_print_link($courseid, $userid, $modulename, $id, $tooltiptext="") {

$rsspix = $pixpath."/i/rss.gif";

echo "<a href=\"".$rsspath."\"><img src=\"$rsspix\" title=\"$tooltiptext\"></a>";
return "<a href=\"".$rsspath."\"><img src=\"$rsspix\" title=\"$tooltiptext\"></a>";

}

//This function prints the icon (from theme) with the link to rss/file.php
function rss_print_link($courseid, $userid, $modulename, $id, $tooltiptext="") {

echo rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext);

}
//This function iterates over each module in the server to see if
//it supports generating rss feeds, searching for a MODULENAME_rss_feeds()
//function and invoking it foreach activity as necessary
Expand Down

0 comments on commit 65f1df6

Please sign in to comment.