CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Change default on override_verp
Pages: [1]

Author Topic: Change default on override_verp  (Read 850 times)

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Change default on override_verp
June 08, 2009, 12:14:53 am
Hello,

I want to change the default for override_verp in Mailings from "false" to "true". Therefore I thought of editing
/civicrm/CRM/Mailing/Form/Upload.php like this:

         $this->addRule( 'textFile', ts('File must be in UTF-8 encoding'), 'utf8File' );
         $this->addElement('checkbox', 'override_verp', ts('Override VERP address?'));
-       
+        $defaults['override_verp'] = true;
+
         $this->addElement( 'file', 'htmlFile', ts('Upload HTML Message'), 'size=30 maxlength=60' );

Sadly that had ZERO effect. Any hint, where I might have a huge misconception here and how I can achieve this ?

Cheers
 Malte

P.S.: Preferably it would be a setting to override the VERP address by default :)

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Change default on override_verp
June 08, 2009, 02:44:46 am
sussdorff :

You should be able to set the  "Override VERP address?" checkbox by default by adding this code in the setDefaultValues method  in CRM/Mailing/Form/Upload.php

Code: [Select]
$defaults['override_verp'] = 1;

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Change default on override_verp

This forum was archived on 2017-11-26.