| @@ 87-92 (lines=6) @@ | ||
| 84 | ||
| 85 | $tabTray = new Xoops\Form\TabTray('', 'pref_tabtay'); |
|
| 86 | $tabs = array(); |
|
| 87 | foreach ($configCats as $name => $info) { |
|
| 88 | $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_' . $name); |
|
| 89 | if (isset($info['description']) && $info['description'] != '') { |
|
| 90 | $tabs[$name]->addElement(new Xoops\Form\Label('', $info['description'])); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | $xoops->events()->triggerEvent('system.preferences.form', $mod); |
|
| 95 | ||
| @@ 81-86 (lines=6) @@ | ||
| 78 | ||
| 79 | $tabTray = new Xoops\Form\TabTray('', 'pref_tabtay'); |
|
| 80 | $tabs = array(); |
|
| 81 | foreach ($configCats as $name => $info) { |
|
| 82 | $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_' . $name); |
|
| 83 | if (isset($info['description']) && $info['description'] != '') { |
|
| 84 | $tabs[$name]->addElement(new Xoops\Form\Label('', $info['description'])); |
|
| 85 | } |
|
| 86 | } |
|
| 87 | $count = count($obj); |
|
| 88 | for ($i = 0; $i < $count; ++$i) { |
|
| 89 | $title = \Xoops\Locale::translate($obj[$i]->getVar('conf_title'), $mod->getVar('dirname')); |
|