* All SquirrelSpell-wide functions are in this file.
*
* @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright 1999-2015 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @return void
*/
function squirrelspell_setup_function() {
+
+ global $data_dir, $username;
+ $sqspell_show_button = getPref($data_dir, $username, 'sqspell_show_button', 1);
+
/**
* Check if this browser is capable of displaying SquirrelSpell
* correctly.
*/
- if (checkForJavascript()) {
+ if ($sqspell_show_button && checkForJavascript()) {
global $oTemplate, $base_uri, $nbsp;