Remove the sidebar flag from the feed definition returned by available_feeds and

replace with a type field with one of two values (head and block).  We need to
do this to determine what fields go in the rss block so we can ignore the
definitions that are related to the page head when creating the rss block that
goes into the sidebar.

Signed-off-by:  <unostar@danalan.info>
This commit is contained in:
Tim Almdal
2009-06-15 04:26:03 +08:00
committed by
parent fdbffc870d
commit 6007843c4a
4 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -21,10 +21,10 @@
class comment_rss_Core {
static function available_feeds($item) {
return array(array("description" => t("All new comments"),
"sidebar" => true,
"type" => "block",
"uri" => "comments"),
array("description" => sprintf(t("Comments on %s"), $item->title),
"sidebar" => true,
"type" => "block",
"uri" => "comments/{$item->id}"));
}