summaryrefslogtreecommitdiff
path: root/modules/developer/views/menu.txt.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/developer/views/menu.txt.php')
-rw-r--r--modules/developer/views/menu.txt.php9
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")));
+ }
}
}