summaryrefslogtreecommitdiffstats
path: root/lib/cfe.lua
blob: 34a249dac9f89fba402c565b50f887726e808bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module(..., package.seeall)

-- create a Configuration Framework Entity (cfe)
-- returns a table with at least "value", "type", and "label"
cfe = function ( optiontable )
	optiontable = optiontable or {}
	me = { 	value="",
		type="text",
		label="" }
	for key,value in pairs(optiontable) do
		me[key] = value
	end
	return me
end
_G.cfe = cfe