Mercurial > prosody-hg
comparison plugins/mod_pep_plus.lua @ 6443:f4403c270ea2
mod_pep_plus: Add node config form
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 28 Sep 2014 02:00:09 +0200 |
| parents | 388786af0dd2 |
| children | aab509a9d0ba |
comparison
equal
deleted
inserted
replaced
| 6442:0f4025abbe8f | 6443:f4403c270ea2 |
|---|---|
| 131 create = true; | 131 create = true; |
| 132 publish = true; | 132 publish = true; |
| 133 retract = true; | 133 retract = true; |
| 134 delete = true; | 134 delete = true; |
| 135 get_nodes = true; | 135 get_nodes = true; |
| 136 configure = true; | |
| 136 | 137 |
| 137 subscribe = true; | 138 subscribe = true; |
| 138 unsubscribe = true; | 139 unsubscribe = true; |
| 139 get_subscription = true; | 140 get_subscription = true; |
| 140 get_subscriptions = true; | 141 get_subscriptions = true; |
| 148 | 149 |
| 149 be_subscribed = true; | 150 be_subscribed = true; |
| 150 be_unsubscribed = true; | 151 be_unsubscribed = true; |
| 151 | 152 |
| 152 set_affiliation = true; | 153 set_affiliation = true; |
| 154 }; | |
| 155 }; | |
| 156 | |
| 157 node_config_form = require"util.dataforms".new { | |
| 158 { | |
| 159 type = "hidden"; | |
| 160 name = "FORM_TYPE"; | |
| 161 value = "http://jabber.org/protocol/pubsub#node_config"; | |
| 162 }; | |
| 163 { | |
| 164 type = "text-single"; | |
| 165 name = "pubsub#max_items"; | |
| 166 label = "Max # of items to persist"; | |
| 153 }; | 167 }; |
| 154 }; | 168 }; |
| 155 | 169 |
| 156 autocreate_on_publish = true; | 170 autocreate_on_publish = true; |
| 157 autocreate_on_subscribe = true; | 171 autocreate_on_subscribe = true; |
