From f7d82ec52f533c620c94fe0327175747cc3d8877 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 4 Mar 2009 15:46:10 +0000 Subject: Rename local_import module to server_add --- modules/local_import/helpers/local_import_menu.php | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 modules/local_import/helpers/local_import_menu.php (limited to 'modules/local_import/helpers/local_import_menu.php') diff --git a/modules/local_import/helpers/local_import_menu.php b/modules/local_import/helpers/local_import_menu.php deleted file mode 100644 index b940e01e..00000000 --- a/modules/local_import/helpers/local_import_menu.php +++ /dev/null @@ -1,43 +0,0 @@ -get("settings_menu") - ->append(Menu::factory("link") - ->id("local_import") - ->label(t("Local Import")) - ->url(url::site("admin/local_import"))); - } - - static function site($menu, $theme) { - $item = $theme->item(); - - $paths = unserialize(module::get_var("local_import", "authorized_paths")); - - if ($item && access::can("edit", $item) && access::can("local_import", $item) && - $item->is_album() && !empty($paths)) { - $options_menu = $menu->get("options_menu") - ->append(Menu::factory("dialog") - ->id("local_import") - ->label(t("Add from server")) - ->url(url::site("local_import/index/$item->id"))); - } - } -} -- cgit v1.2.3