diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-15 19:27:30 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-15 19:27:30 +0000 |
| commit | 6ac6c6a7e0824d8fda81e36240818f9b7e9c4696 (patch) | |
| tree | a5ad572c446667f8ab5fef3d2e0c6b63043344c2 /modules/developer/views/block.txt.php | |
| parent | 7c5ba9d4229a6e3c258f6a80769e70c5dcd68578 (diff) | |
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.
Diffstat (limited to 'modules/developer/views/block.txt.php')
| -rw-r--r-- | modules/developer/views/block.txt.php | 12 |
1 files changed, 12 insertions, 0 deletions
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 <?= $module ?>_block { static function get($block_id) { + $block = new Block(); + if ($block_id == "<?= $module ?>") { + $block->css_id = "g<?= $css_id ?>Admin"; + $block->title = t("<?= $module ?> Dashboard Block"); + $block->content = new View("<?= $module ?>block.html"); + + $block->content->item = ORM::factory("item", 1); + } + return $block; } + static function get_list() { + return array( + "<?= $module ?>" => t("<?= $name ?> Dashboard Block")); } } |
