Deprecate preferred_mail_format column
authorColeman Watts <coleman@civicrm.org>
Wed, 31 Aug 2022 16:16:19 +0000 (12:16 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 31 Aug 2022 16:16:19 +0000 (12:16 -0400)
CRM/Contact/DAO/Contact.php
xml/schema/Contact/Contact.xml

index ec0f6bcf334a0b4c73c5c2eabccec629b419d57a..bda098f2936d4676392660da5d0b88dcf9de37e1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3a5849bd17dab3559b6002ffd18ea0b7)
+ * (GenCodeChecksum:be4fd5a55e44b4770bd3fcdebd2c26a5)
  */
 
 /**
@@ -209,11 +209,12 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
   public $preferred_language;
 
   /**
-   * What is the preferred mode of sending an email.
+   * Deprecated setting for text vs html mailings
    *
    * @var string|null
    *   (SQL type: varchar(8))
    *   Note that values will be retrieved from the database as a string.
+   * @deprecated
    */
   public $preferred_mail_format;
 
@@ -959,7 +960,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'name' => 'preferred_mail_format',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Preferred Mail Format'),
-          'description' => ts('What is the preferred mode of sending an email.'),
+          'description' => ts('Deprecated setting for text vs html mailings'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
           'import' => FALSE,
index eadfeaeb6cc8f9e7dad020870ecf8b10b65102ed..66d553c2799776505fe5a643fb0da07d0dae2e9a 100644 (file)
     <default>"Both"</default>
     <import>false</import>
     <headerPattern>/^p(ref\w*\s)?m(ail\s)?f(orm\w*)$/i</headerPattern>
-    <comment>What is the preferred mode of sending an email.</comment>
+    <comment>Deprecated setting for text vs html mailings</comment>
     <add>1.1</add>
     <pseudoconstant>
       <callback>CRM_Core_SelectValues::pmf</callback>
       <type>Select</type>
       <label>Preferred Mail Format</label>
     </html>
+    <deprecated>true</deprecated>
   </field>
   <field>
     <name>hash</name>