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; } }