-#\DeclareLyXModule{Sets all footnotes as endnotes. You will need to add \theendnotes in ERT where you want the endnotes to appear.}{Foot to End}
+#\DeclareLyXModule[endnotes.sty]{Foot to End}
+#DescriptionBegin
+#Sets all footnotes as endnotes. You will need to add \theendnotes
+#in TeX-code where you want the endnotes to appear.
+#DescriptionEnd
-Format 6
+Format 60
Requires endnotes
-Preamble
+AddToPreamble
\let\footnote=\endnote
EndPreamble