X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FSetting%2FMail.php;h=989dad279ea9c0b7362ca396dff3c3d69e15ecae;hb=d5ad8c27aae985b4b0e794a8d5328c83da670f57;hp=0e1532f131eefc4c677050325920161bf3cec4d8;hpb=709e574bfc8b047d9e9f9a6ad84595bc3f560b54;p=civicrm-core.git diff --git a/CRM/Admin/Form/Setting/Mail.php b/CRM/Admin/Form/Setting/Mail.php index 0e1532f131..989dad279e 100644 --- a/CRM/Admin/Form/Setting/Mail.php +++ b/CRM/Admin/Form/Setting/Mail.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -38,8 +38,12 @@ */ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting { + protected $_settings = array( + 'replyTo' => CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME, + ); + /** - * Build the form object + * Build the form object. * * @return void */ @@ -49,7 +53,6 @@ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting { $this->addElement('text', 'mailerBatchLimit', ts('Mailer Batch Limit')); $this->addElement('text', 'mailThrottleTime', ts('Mailer Throttle Time')); $this->addElement('text', 'mailerJobSize', ts('Mailer Job Size')); - $this->addElement('advcheckbox', 'replyTo', ts('Enable Custom Reply-To')); $this->addElement('text', 'mailerJobsMax', ts('Mailer CRON job limit')); $check = TRUE; @@ -58,10 +61,10 @@ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting { $session->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1')); $this->addFormRule(array('CRM_Admin_Form_Setting_Mail', 'formRule')); - $this->addRule('mailerBatchLimit', ts('Must be an integer'), 'integer'); - $this->addRule('mailThrottleTime', ts('Must be an integer'), 'integer'); - $this->addRule('mailerJobSize', ts('Must be an integer'), 'integer'); - $this->addRule('mailerJobsMax', ts('Must be an integer'), 'integer'); + $this->addRule('mailerBatchLimit', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailThrottleTime', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailerJobSize', ts('Please enter a valid integer.'), 'integer'); + $this->addRule('mailerJobsMax', ts('Please enter a valid integer.'), 'integer'); parent::buildQuickForm($check); }