Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 6446:011ca9b88179

mod_pubsub: Move node config form into pubsub.lib (Thanks Florob)
author Kim Alvefur <zash@zash.se>
date Sun, 28 Sep 2014 02:47:54 +0200
parent 6441:bcb1ea9047d3
child 6450:25d86b0f2147
child 6515:c9a72c64c3e2
comparison
equal deleted inserted replaced
6445:f1ad3923368c 6446:011ca9b88179
216 216
217 set_affiliation = true; 217 set_affiliation = true;
218 }; 218 };
219 }; 219 };
220 220
221 node_config_form = require"util.dataforms".new {
222 {
223 type = "hidden";
224 name = "FORM_TYPE";
225 value = "http://jabber.org/protocol/pubsub#node_config";
226 };
227 {
228 type = "text-single";
229 name = "pubsub#max_items";
230 label = "Max # of items to persist";
231 };
232 };
233
234 autocreate_on_publish = autocreate_on_publish; 221 autocreate_on_publish = autocreate_on_publish;
235 autocreate_on_subscribe = autocreate_on_subscribe; 222 autocreate_on_subscribe = autocreate_on_subscribe;
236 223
237 broadcaster = simple_broadcast; 224 broadcaster = simple_broadcast;
238 get_affiliation = get_affiliation; 225 get_affiliation = get_affiliation;