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/menu.txt.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/developer/views/menu.txt.php') 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 _menu { 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("") + ->label(t("Peform Processing")) + ->url(url::site("/index/$item->id"))); + } } } -- cgit v1.2.3