diff options
author | thomascube <thomas@roundcube.net> | 2012-02-11 11:38:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-02-11 11:38:46 +0000 |
commit | ba36dd03f6f7005a6e35ec02e4ff9a58f95be1c3 (patch) | |
tree | 002d0183144bb7adcf757144c035f0f8d0eba649 /program/steps/settings/func.inc | |
parent | 5ea6e16036aa18c57c709dc88e4255120b63e965 (diff) |
Backported r5850 to 0.7 branch
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r-- | program/steps/settings/func.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index fdb65ade9..a529b3b12 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -660,6 +660,20 @@ function rcmail_user_prefs($current=null) ); } + // show addressbook sort column + if (!isset($no_override['addressbook_sort_col'])) { + $field_id = 'rcmfd_addressbook_sort_col'; + $select_sort = new html_select(array('name' => '_addressbook_sort_col', 'id' => $field_id)); + $select_sort->add(rcube_label('name'), 'name'); + $select_sort->add(rcube_label('firstname'), 'firstname'); + $select_sort->add(rcube_label('surname'), 'surname'); + + $blocks['main']['options']['sort_col'] = array( + 'title' => html::label($field_id, Q(rcube_label('listsorting'))), + 'content' => $select_sort->show($config['addressbook_sort_col']), + ); + } + if (!isset($no_override['autocomplete_single'])) { $field_id = 'rcmfd_autocomplete_single'; $checkbox = new html_checkbox(array('name' => '_autocomplete_single', 'id' => $field_id, 'value' => 1)); |