liquid_feedback_frontend
diff env/lf4rcs/init.lua @ 1219:30523f31b186
Added lf4rcs module and example configuration
author | bsw |
---|---|
date | Mon Nov 30 19:40:38 2015 +0100 (2015-11-30) |
parents | |
children | 32cc544d5a5b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/env/lf4rcs/init.lua Mon Nov 30 19:40:38 2015 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +function lf4rcs.init() 1.5 + local super_handler = config.notification_handler_func 1.6 + config.notification_handler_func = function(event) 1.7 + if super_handler then super_handler(event) end 1.8 + lf4rcs.notification_handler(event) 1.9 + end 1.10 + config.render_external_reference = { 1.11 + draft = lf4rcs.render_draft_reference, 1.12 + initiative = lf4rcs.render_initiative_reference 1.13 + } 1.14 +end 1.15 +