From 6ac6c6a7e0824d8fda81e36240818f9b7e9c4696 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 15 Mar 2009 19:27:30 +0000 Subject: Updates to the developer tool create module. It now creates a fully functional sidebar block, a dialog pop up on the option menu for albums or photos, a dashboard block and an admin screen. --- modules/developer/views/block.txt.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/developer/views/block.txt.php') diff --git a/modules/developer/views/block.txt.php b/modules/developer/views/block.txt.php index b8a96da0..56c0bf8c 100644 --- a/modules/developer/views/block.txt.php +++ b/modules/developer/views/block.txt.php @@ -20,7 +20,19 @@ */ class _block { static function get($block_id) { + $block = new Block(); + if ($block_id == "") { + $block->css_id = "gAdmin"; + $block->title = t(" Dashboard Block"); + $block->content = new View("block.html"); + + $block->content->item = ORM::factory("item", 1); + } + return $block; } + static function get_list() { + return array( + "" => t(" Dashboard Block")); } } -- cgit v1.2.3