diff options
author | alecpl <alec@alec.pl> | 2011-05-30 16:19:51 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-30 16:19:51 +0000 |
commit | 1d5779b2577453a1000f38fa987bb0eafd3c554f (patch) | |
tree | 0d2f239b2c2c9c39f73d866603c2cac35808bbba /program/steps/settings/func.inc | |
parent | b4edf78e4b75bc40a829147941ba0cf6379fbc39 (diff) |
- Add option to force spellchecking before sending a message (#1485458)
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r-- | program/steps/settings/func.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 280185e76..cf2d59199 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -545,6 +545,16 @@ function rcmail_user_prefs($current=null) ); } + if (!isset($no_override['spellcheck_before_send']) && $config['enable_spellcheck']) { + $field_id = 'rcmfd_spellcheck_before_send'; + $input_spellcheck = new html_checkbox(array('name' => '_spellcheck_before_send', 'id' => $field_id, 'value' => 1)); + + $blocks['main']['options']['spellcheck_before_send'] = array( + 'title' => html::label($field_id, Q(rcube_label('spellcheckbeforesend'))), + 'content' => $input_spellcheck->show($config['spellcheck_before_send']?1:0), + ); + } + if (!isset($no_override['show_sig'])) { $field_id = 'rcmfd_show_sig'; $select_show_sig = new html_select(array('name' => '_show_sig', 'id' => $field_id)); |