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/menu.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/menu.txt.php')
| -rw-r--r-- | modules/developer/views/menu.txt.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/developer/views/menu.txt.php b/modules/developer/views/menu.txt.php index 5404f6c5..dd315972 100644 --- a/modules/developer/views/menu.txt.php +++ b/modules/developer/views/menu.txt.php @@ -38,5 +38,14 @@ class <?= $module ?>_menu { <? endif ?> static function site($menu, $theme) { + $item = $theme->item(); + + if ($item && access::can("edit", $item)) { + $options_menu = $menu->get("options_menu") + ->append(Menu::factory("dialog") + ->id("<?= $module ?>") + ->label(t("Peform <?= $module_name ?> Processing")) + ->url(url::site("<?= $module ?>/index/$item->id"))); + } } } |
