Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 9185:60f163e7a7a7

mod_pubsub: Specify defaults for notification settings
author Kim Alvefur <zash@zash.se>
date Thu, 16 Aug 2018 15:05:01 +0200
parent 9184:9fbddb80803b
child 9186:9f33a13eb011
comparison
equal deleted inserted replaced
9184:9fbddb80803b 9185:60f163e7a7a7
99 }; 99 };
100 { 100 {
101 type = "boolean"; 101 type = "boolean";
102 label = "Whether to deliver payloads with event notifications"; 102 label = "Whether to deliver payloads with event notifications";
103 name = "pubsub#deliver_payloads"; 103 name = "pubsub#deliver_payloads";
104 value = true;
104 }; 105 };
105 { 106 {
106 type = "list-single"; 107 type = "list-single";
107 name = "pubsub#notification_type"; 108 name = "pubsub#notification_type";
108 label = "Specify the delivery style for notifications"; 109 label = "Specify the delivery style for notifications";
113 }; 114 };
114 { 115 {
115 type = "boolean"; 116 type = "boolean";
116 label = "Whether to notify subscribers when the node is deleted"; 117 label = "Whether to notify subscribers when the node is deleted";
117 name = "pubsub#notify_delete"; 118 name = "pubsub#notify_delete";
119 value = true;
118 }; 120 };
119 { 121 {
120 type = "boolean"; 122 type = "boolean";
121 label = "Whether to notify subscribers when items are removed from the node"; 123 label = "Whether to notify subscribers when items are removed from the node";
122 name = "pubsub#notify_retract"; 124 name = "pubsub#notify_retract";
125 value = true;
123 }; 126 };
124 }; 127 };
125 128
126 local subscribe_options_form = dataform { 129 local subscribe_options_form = dataform {
127 { 130 {