-function bug_report_options() {
- global $bug_report_visible;
-
- echo '<tr>' . html_tag('td',_("Bug Reports:"),'right','','style="white-space: nowrap;"') . "\n" .
- '<td><input name="bug_report_bug_report_visible" type="checkbox"';
- if ($bug_report_visible) {
- echo ' checked="checked"';
- }
- echo ' /> ' . _("Show button in toolbar") . "</td></tr>\n";
+function bug_report_block() {
+ global $optpage_data;
+ $optpage_data['grps']['bug_report'] = _("Bug Reports");
+ $optionValues = array();
+ // FIXME: option needs refresh in SMOPT_REFRESH_RIGHT
+ // (menulink is processed before options are saved/loaded)
+ $optionValues[] = array(
+ 'name' => 'bug_report_visible',
+ 'caption' => _("Show button in toolbar"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_ALL,
+ 'initial_value' => false
+ );
+ $optpage_data['vals']['bug_report'] = $optionValues;