モジュールの中ではグローバル変数の$xoopsModuleConfigでそのモジュールの一般設定の値を取得できるが、別のモジュールの一般設定を参照したいことがあったのでその方法をメモ。
$moduleHandler = xoops_gethandler('module');
// モジュール指定 target_module_dirname を一般設定を取得したいモジュールのディレクトリ名に変更してください
$targetModule = $moduleHandler->getByDirname('target_module_dirname');
// コンフィグ取得
$configHandler =& xoops_gethandler('config');
// targetModuleConfigに対象モジュールの一般設定が入る
$targetModuleConfig = $configHandler->getConfigsByCat(0, $targetModule->get('mid'));