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/libraries/Block.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/libraries/Block.php') diff --git a/core/libraries/Block.php b/core/libraries/Block.php index b6b77780..3689bff0 100644 --- a/core/libraries/Block.php +++ b/core/libraries/Block.php @@ -18,9 +18,10 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Block_Core { + public $content = null; + public $css_id = null; public $id = null; public $title = null; - public $content = null; public function __toString() { return View::factory("block.html", get_object_vars($this))->__toString(); -- cgit v1.2.3