From 7b68ca9946772fdb8fa2db756e934cc7883ea52d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 18 Jan 2009 06:55:04 +0000 Subject: Refactor dashboard -> block_manager since it'll manage blocks site wide, not just in the dashboard. --- core/helpers/dashboard.php | 63 ---------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 core/helpers/dashboard.php (limited to 'core/helpers/dashboard.php') diff --git a/core/helpers/dashboard.php b/core/helpers/dashboard.php deleted file mode 100644 index 8e6f6aaa..00000000 --- a/core/helpers/dashboard.php +++ /dev/null @@ -1,63 +0,0 @@ -name}_dashboard", "get_list")) { - foreach (call_user_func(array("{$module->name}_dashboard", "get_list")) as $id => $title) { - $blocks["{$module->name}:$id"] = $title; - } - } - } - return $blocks; - } - - static function get_blocks($blocks) { - $result = ""; - foreach ($blocks as $id => $desc) { - if (method_exists("$desc[0]_dashboard", "get_block")) { - $block = call_user_func(array("$desc[0]_dashboard", "get_block"), $desc[1]); - $block->id = $id; - $result .= $block; - } - } - return $result; - } -} - -- cgit v1.2.3