From 08c47f28f25e5299142242bb15c872ac84fc702b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 3 Mar 2009 22:19:46 +0000 Subject: Inline the admin view creation that was in helpers/local_import.php and remove it. Cleanup unused variables. Rename the method remove() to remove_path() --- modules/local_import/helpers/local_import.php | 42 --------------------------- 1 file changed, 42 deletions(-) delete mode 100644 modules/local_import/helpers/local_import.php (limited to 'modules/local_import/helpers/local_import.php') diff --git a/modules/local_import/helpers/local_import.php b/modules/local_import/helpers/local_import.php deleted file mode 100644 index d40b6016..00000000 --- a/modules/local_import/helpers/local_import.php +++ /dev/null @@ -1,42 +0,0 @@ -paths = array_keys($paths); - $template->path_list = $path_list->render(); - $template->add_form = self::get_admin_form()->render(); - - return $template; - } - - static function get_admin_form() { - $form = new Forge("admin/local_import/add_path", "", "post", array("id" => "gLocalImportAdminForm")); - $add_path = $form->group("add_path"); - $add_path->input("path")->label(t("Path"))->rules("required") - ->error_messages("not_readable", t("The directory is not readable by the webserver")); - $add_path->submit("add")->value(t("Add Path")); - - return $form; - } -} -- cgit v1.2.3