From b19729435cd918e03e1bd6fbb91f7281bf3e5873 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 12 Jan 2009 07:39:53 +0000 Subject: Dashboard blocks are now data driven, and you can add new blocks to both the sidebar and the center content area from a dropdown at the top of the dashboard sidebar. --- modules/comment/helpers/comment_installer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/comment/helpers/comment_installer.php') diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php index 0a45839f..4b3a7259 100644 --- a/modules/comment/helpers/comment_installer.php +++ b/modules/comment/helpers/comment_installer.php @@ -49,6 +49,10 @@ class comment_installer { PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); + + $dashboard_blocks = unserialize(module::get_var("core", "dashboard_blocks")); + $dashboard_blocks["main"][] = array("comment", "recent_comments"); + module::set_var("core", "dashboard_blocks", serialize($dashboard_blocks)); module::set_var("comment", "spam_caught", 0); module::set_version("comment", 1); } -- cgit v1.2.3