From 3d1ea2904d982422ce24c43b25d0d4bca6f29aa3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 18 Jan 2009 05:01:00 +0000 Subject: Rename theme callback helpers from xxx_block to xxx_theme to make room for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard. --- modules/comment/helpers/comment_block.php | 42 ------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 modules/comment/helpers/comment_block.php (limited to 'modules/comment/helpers/comment_block.php') diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php deleted file mode 100644 index d8f08feb..00000000 --- a/modules/comment/helpers/comment_block.php +++ /dev/null @@ -1,42 +0,0 @@ -\n"; - } - - static function photo_bottom($theme) { - $block = new Block; - $block->css_id = "gComments"; - $block->title = t("Comments"); - - $view = new View("comments.html"); - $view->comments = ORM::factory("comment") - ->where("item_id", $theme->item()->id) - ->where("state", "published") - ->orderby("created", "ASC") - ->find_all(); - - $block->content = $view; - $block->content .= comment::get_add_form($theme->item())->render("form.html"); - return $block; - } -} \ No newline at end of file -- cgit v1.2.3