Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 11785:b1381e302cab
mod_pubsub/pubsub.lib: Export config forms for use by other modules
In this case I need them for 227 import/export.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 11 Sep 2021 13:59:35 +0100 |
| parents | 071715a18394 |
| children | 024b44ad5651 |
comparison
equal
deleted
inserted
replaced
| 11784:f0971a9eba88 | 11785:b1381e302cab |
|---|---|
| 156 name = "notify_retract"; | 156 name = "notify_retract"; |
| 157 var = "pubsub#notify_retract"; | 157 var = "pubsub#notify_retract"; |
| 158 value = true; | 158 value = true; |
| 159 }; | 159 }; |
| 160 }; | 160 }; |
| 161 _M.node_config_form = node_config_form; | |
| 161 | 162 |
| 162 local subscribe_options_form = dataform { | 163 local subscribe_options_form = dataform { |
| 163 { | 164 { |
| 164 type = "hidden"; | 165 type = "hidden"; |
| 165 var = "FORM_TYPE"; | 166 var = "FORM_TYPE"; |
| 169 type = "boolean"; | 170 type = "boolean"; |
| 170 name = "pubsub#include_body"; | 171 name = "pubsub#include_body"; |
| 171 label = "Receive message body in addition to payload?"; | 172 label = "Receive message body in addition to payload?"; |
| 172 }; | 173 }; |
| 173 }; | 174 }; |
| 175 _M.subscribe_options_form = subscribe_options_form; | |
| 174 | 176 |
| 175 local node_metadata_form = dataform { | 177 local node_metadata_form = dataform { |
| 176 { | 178 { |
| 177 type = "hidden"; | 179 type = "hidden"; |
| 178 var = "FORM_TYPE"; | 180 var = "FORM_TYPE"; |
| 197 { | 199 { |
| 198 type = "text-single"; | 200 type = "text-single"; |
| 199 name = "pubsub#publish_model"; | 201 name = "pubsub#publish_model"; |
| 200 }; | 202 }; |
| 201 }; | 203 }; |
| 204 _M.node_metadata_form = node_metadata_form; | |
| 202 | 205 |
| 203 local service_method_feature_map = { | 206 local service_method_feature_map = { |
| 204 add_subscription = { "subscribe", "subscription-options" }; | 207 add_subscription = { "subscribe", "subscription-options" }; |
| 205 create = { "create-nodes", "instant-nodes", "item-ids", "create-and-configure" }; | 208 create = { "create-nodes", "instant-nodes", "item-ids", "create-and-configure" }; |
| 206 delete = { "delete-nodes" }; | 209 delete = { "delete-nodes" }; |
