liquid_feedback_frontend
view env/lf4rcs/init.lua @ 1248:c0fd12b97d65
Changes on notifications system, newsletter support added
| author | bsw | 
|---|---|
| date | Tue Apr 05 20:40:37 2016 +0200 (2016-04-05) | 
| parents | 30523f31b186 | 
| children | 32cc544d5a5b | 
 line source
     1 function lf4rcs.init()
     2   local super_handler = config.notification_handler_func
     3   config.notification_handler_func = function(event)
     4     if super_handler then super_handler(event) end
     5     lf4rcs.notification_handler(event)
     6   end
     7   config.render_external_reference = {
     8     draft = lf4rcs.render_draft_reference,
     9     initiative = lf4rcs.render_initiative_reference
    10   }
    11 end
