api/options/Modules
Module:SetGlobalOptionsFunction(func)
Set the function to be called that will return a tuple of key-value pairs that will be merged onto the options table for the module options.
Parameters
- func
- function to call
Usage
MyModule:SetGlobalOptionsFunction(function(self) return 'someOption', { name = "Some option", } -- etc end)
Comments