| @@ 50-61 (lines=12) @@ | ||
| 47 | $helper->renderView(); |
|
| 48 | } |
|
| 49 | ||
| 50 | public static function eventSystemModuleUpdateConfigs(ConfigCollector $collector) |
|
| 51 | { |
|
| 52 | $helper = \Xoops::getModuleHelper('comments'); |
|
| 53 | if ($plugin = Plugin::getPlugin( |
|
| 54 | $collector->module()->getVar('dirname'), |
|
| 55 | 'comments', |
|
| 56 | true |
|
| 57 | )) { |
|
| 58 | $pluginConfigs = $helper->getPluginableConfigs(); |
|
| 59 | $collector->add($pluginConfigs); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| 63 | public static function eventSystemModuleInstall(XoopsModule $module) |
|
| 64 | { |
|
| @@ 120-131 (lines=12) @@ | ||
| 117 | $xoops->tpl()->assign('notifications', $notifications); |
|
| 118 | } |
|
| 119 | ||
| 120 | public static function eventSystemModuleUpdateConfigs(ConfigCollector $collector) |
|
| 121 | { |
|
| 122 | $helper = \Xoops::getModuleHelper('notifications'); |
|
| 123 | if ($plugin = Plugin::getPlugin( |
|
| 124 | $collector->module()->getVar('dirname'), |
|
| 125 | 'notifications', |
|
| 126 | true |
|
| 127 | )) { |
|
| 128 | $pluginConfigs = $helper->getPluginableConfigs($collector->module()); |
|
| 129 | $collector->add($pluginConfigs); |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | public static function eventSystemModuleInstallConfigs(XoopsModule $module) |
|
| 134 | { |
|