aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index ff31271b..36403b60 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -443,6 +443,19 @@ function api:remove_item(key, value)
end
end
+function api:get_host_items(key)
+ local result = {};
+ for mod_name, module in pairs(modulemap[self.host]) do
+ module = module.module;
+ if module.items then
+ for _, item in ipairs(module.items[key] or NULL) do
+ t_insert(result, item);
+ end
+ end
+ end
+ return result;
+end
+
--------------------------------------------------------------------
local actions = {};