How do I access a module's configuration settings?
Suppose that a parameter named 'foo' is defined in /modules/bar/xoops_version.php:
$modversion['config'][-]['name'] = 'foo';
global $xoopsModuleConfig; // needed only if within a function
echo "The current value of 'foo' is: " . $xoopsModuleConfig['foo'];
$module_handler =& xoops_gethandler('module');
$module =& $module_handler->getByDirname('bar');
$config_handler =& xoops_gethandler('config');
$moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid'));
echo "The current value of 'foo' is: " . $moduleConfig['foo'];
This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=393