94 end |
94 end |
95 end |
95 end |
96 end |
96 end |
97 end |
97 end |
98 eventmanager.add_event_hook("host-activated", load_modules_for_host); |
98 eventmanager.add_event_hook("host-activated", load_modules_for_host); |
|
99 eventmanager.add_event_hook("component-activated", load_modules_for_host); |
99 -- |
100 -- |
100 |
101 |
101 function load(host, module_name, config) |
102 function load(host, module_name, config) |
102 if not (host and module_name) then |
103 if not (host and module_name) then |
103 return nil, "insufficient-parameters"; |
104 return nil, "insufficient-parameters"; |