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.
This commit is contained in:
Bharat Mediratta
2009-01-12 07:39:53 +00:00
parent ef303bde3e
commit b19729435c
11 changed files with 220 additions and 81 deletions

View File

@@ -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);
}