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. --- core/helpers/core_installer.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/helpers/core_installer.php') diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index 0da8bc3e..e809d687 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -236,12 +236,12 @@ class core_installer { module::set_var( "core", "dashboard_blocks", serialize( - array("sidebar" => array(array("core", "stats"), - array("core", "platform_info"), - array("core", "project_news")), - "main" => array(array("core", "welcome"), - array("core", "photo_stream"), - array("core", "log_entries"))))); + array("sidebar" => array(rand() => array("core", "stats"), + rand() => array("core", "platform_info"), + rand() => array("core", "project_news")), + "main" => array(rand() => array("core", "welcome"), + rand() => array("core", "photo_stream"), + rand() => array("core", "log_entries"))))); module::set_version("core", 1); module::set_var("core", "version", "3.0"); -- cgit v1.2.3