diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 08:26:38 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 08:26:38 +0000 |
commit | bc421a615ab89cf5416af12173471235cdf5d297 (patch) | |
tree | a4318a7c649423e2a4a23327ba8aa1fa183397eb /modules/info/helpers | |
parent | ce6d7b8d3799cf5996a7c4fd512bf4efb85d1c5b (diff) |
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.
Diffstat (limited to 'modules/info/helpers')
-rw-r--r-- | modules/info/helpers/info_block.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 358dd3b8..46e2bd72 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -21,7 +21,7 @@ class info_block_Core { public static function sidebar_blocks($theme) { if ($theme->item()) { $block = new Block(); - $block->id = "gMetadata"; + $block->css_id = "gMetadata"; $block->title = t("Item Info"); $block->content = new View("info_block.html"); return $block; |