summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-22 12:33:28 +0000
committeralecpl <alec@alec.pl>2008-09-22 12:33:28 +0000
commite98809ae5567d8ce5b4baec3603e6c85387468ef (patch)
tree86eb368700ac2fd691648f0a87a0fd942c52345c /program/steps
parentcc669e3727615a1a3eab355c069c7ba6c2d307a7 (diff)
- allow to enable/disable configuration for only some of special folders
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/func.inc32
1 files changed, 20 insertions, 12 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 4ea8dad4b..f115ad900 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -233,18 +233,26 @@ function rcmail_user_prefs_form($attrib)
$table = new html_table(array('cols' => 2));
- $table->add('title', Q(rcube_label('drafts')));
- $table->add(null, $select->show($config['drafts_mbox'], array('name' => "_drafts_mbox", 'onchange' => "document.getElementById('rcmfd_autosave').disabled=this.selectedIndex==0")));
-
- $table->add('title', Q(rcube_label('sent')));
- $table->add(null, $select->show($config['sent_mbox'], array('name' => "_sent_mbox")));
-
- $table->add('title', Q(rcube_label('junk')));
- $table->add(null, $select->show($config['junk_mbox'], array('name' => "_junk_mbox")));
-
- $table->add('title', Q(rcube_label('trash')));
- $table->add(null, $select->show($config['trash_mbox'], array('name' => "_trash_mbox")));
-
+ if (!isset($no_override['drafts_mbox'])) {
+ $table->add('title', Q(rcube_label('drafts')));
+ $table->add(null, $select->show($config['drafts_mbox'], array('name' => "_drafts_mbox", 'onchange' => "document.getElementById('rcmfd_autosave').disabled=this.selectedIndex==0")));
+ }
+
+ if (!isset($no_override['sent_mbox'])) {
+ $table->add('title', Q(rcube_label('sent')));
+ $table->add(null, $select->show($config['sent_mbox'], array('name' => "_sent_mbox")));
+ }
+
+ if (!isset($no_override['junk_mbox'])) {
+ $table->add('title', Q(rcube_label('junk')));
+ $table->add(null, $select->show($config['junk_mbox'], array('name' => "_junk_mbox")));
+ }
+
+ if (!isset($no_override['trash_mbox'])) {
+ $table->add('title', Q(rcube_label('trash')));
+ $table->add(null, $select->show($config['trash_mbox'], array('name' => "_trash_mbox")));
+ }
+
$out .= html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('specialfolders'))) . $table->show($attrib));
}