Software /
code /
prosody
Comparison
plugins/adhoc/adhoc.lib.lua @ 3346:c9294e190bb6
mod_adhoc: Add capability to pass data to forms
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 10 Jul 2010 01:17:07 +0200 |
parent | 3230:a5c3a82d677e |
child | 3484:66910810a9f7 |
comparison
equal
deleted
inserted
replaced
3345:8520cd88b84c | 3346:c9294e190bb6 |
---|---|
67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); | 67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); |
68 end | 68 end |
69 end | 69 end |
70 cmdtag:add_child(actions); | 70 cmdtag:add_child(actions); |
71 elseif name == "form" then | 71 elseif name == "form" then |
72 cmdtag:add_child(content:form()); | 72 cmdtag:add_child((content.layout or content):form(content.data)); |
73 elseif name == "result" then | 73 elseif name == "result" then |
74 cmdtag:add_child(content.layout:form(content.data, "result")); | 74 cmdtag:add_child((content.layout or content):form(content.data, "result")); |
75 elseif name == "other" then | 75 elseif name == "other" then |
76 cmdtag:add_child(content); | 76 cmdtag:add_child(content); |
77 end | 77 end |
78 end | 78 end |
79 stanza:add_child(cmdtag); | 79 stanza:add_child(cmdtag); |