From bc421a615ab89cf5416af12173471235cdf5d297 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 12 Jan 2009 08:26:38 +0000 Subject: Implement deleting dashboard blocks. * Refactor blocks so that they have a separate id vs css_id. This way we can have a unique identifier for each visual block. * Store blocks with a random id as their unique identifier * Add Admin_Dashboard::remove_block() and modify themes/admin_default/views/block.html.php to call it when you click the remove box. --- modules/comment/helpers/comment_installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 4b3a7259..b54692ec 100644 --- a/modules/comment/helpers/comment_installer.php +++ b/modules/comment/helpers/comment_installer.php @@ -51,7 +51,7 @@ class comment_installer { $dashboard_blocks = unserialize(module::get_var("core", "dashboard_blocks")); - $dashboard_blocks["main"][] = array("comment", "recent_comments"); + $dashboard_blocks["main"][rand()] = 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