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/info/helpers/info_block.php | 45 ------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 modules/info/helpers/info_block.php (limited to 'modules/info/helpers/info_block.php') diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php deleted file mode 100644 index c832b4f6..00000000 --- a/modules/info/helpers/info_block.php +++ /dev/null @@ -1,45 +0,0 @@ -item()) { - $block = new Block(); - $block->css_id = "gMetadata"; - $block->title = t("Item Info"); - $block->content = new View("info_block.html"); - return $block; - } - } - - static function thumb_info($theme, $item) { - $results = ""; - if ($item->view_count) { - $results .= "
  • "; - $results .= t("Views: %view_count", array("view_count" => $item->view_count)); - $results .= "
  • "; - } - if ($item->owner) { - $results .= "
  • "; - $results .= t("By: %owner_name", array("owner_name" => "{$item->owner->name}")); - $results .= "
  • "; - } - return $results; - } -} \ No newline at end of file -- cgit v1.2.3