summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 085411d..2ea8a40 100644
--- a/init.lua
+++ b/init.lua
@@ -146,6 +146,14 @@ function doc.get_viewed_count(playername, category_id)
end
end
+-- Template function templates, to be used for build_formspec in doc.new_category
+doc.entry_templates = {}
+
+-- Freeform text
+doc.entry_templates.text = function(data)
+ return "textarea[0.25,0.5;11,8;;"..minetest.formspec_escape(data)..";]"
+end
+
--[[ Functions for internal use ]]
function doc.formspec_core(tab)