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 --- .../local_import/helpers/local_import_block.php | 30 -------------- .../helpers/local_import_installer.php | 46 ---------------------- modules/local_import/helpers/local_import_menu.php | 43 -------------------- .../local_import/helpers/local_import_theme.php | 38 ------------------ 4 files changed, 157 deletions(-) delete mode 100644 modules/local_import/helpers/local_import_block.php delete mode 100644 modules/local_import/helpers/local_import_installer.php delete mode 100644 modules/local_import/helpers/local_import_menu.php delete mode 100644 modules/local_import/helpers/local_import_theme.php (limited to 'modules/local_import/helpers') diff --git a/modules/local_import/helpers/local_import_block.php b/modules/local_import/helpers/local_import_block.php deleted file mode 100644 index b412f338..00000000 --- a/modules/local_import/helpers/local_import_block.php +++ /dev/null @@ -1,30 +0,0 @@ -"; - - return implode("\n", $head); - } -} diff --git a/modules/local_import/helpers/local_import_installer.php b/modules/local_import/helpers/local_import_installer.php deleted file mode 100644 index df183a11..00000000 --- a/modules/local_import/helpers/local_import_installer.php +++ /dev/null @@ -1,46 +0,0 @@ -here to configure one", - array("url" => url::site("/admin/local_import")))); - } - } - - static function uninstall() { - access::delete_permission("local_import"); - $module = module::get("local_import"); - - $db = Database::instance(); - $db->delete("vars", array("module_name" => $module->name)); - - module::delete("local_import"); - } -} 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"))); - } - } -} diff --git a/modules/local_import/helpers/local_import_theme.php b/modules/local_import/helpers/local_import_theme.php deleted file mode 100644 index 69341c72..00000000 --- a/modules/local_import/helpers/local_import_theme.php +++ /dev/null @@ -1,38 +0,0 @@ -"; - $head[] = ""; - $base = url::base(true); - $csrf = access::csrf_token(); - $head[] = ""; - - $head[] = html::script("modules/local_import/js/jquery.autocomplete.pack.js"); - $head[] = html::script("modules/local_import/js/admin.js"); - } - - return implode("\n", $head); - } -} \ No newline at end of file -- cgit v1.2.3