CRM-15361 - Expose API options for location_type_id, email_selection_method
authorTim Otten <totten@civicrm.org>
Fri, 13 Feb 2015 20:56:08 +0000 (12:56 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 13 Feb 2015 20:56:08 +0000 (12:56 -0800)
xml/schema/Mailing/Mailing.xml

index 8520c5dc9c2e65521d1e648f226d8a87d10e8ba6..32dc35f45529033f6e704184453a36aadfef7a8e 100644 (file)
     <type>int unsigned</type>
     <default>0</default>
     <comment>With email_selection_method, determines which email address to use</comment>
+    <pseudoconstant>
+      <table>civicrm_location_type</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>display_name</labelColumn>
+    </pseudoconstant>
     <add>4.6</add>
   </field>
 <field>
     <length>20</length>
     <default>'automatic'</default>
     <comment>With location_type_id, determine how to choose the email address to use.</comment>
+    <pseudoconstant>
+      <callback>CRM_Core_SelectValues::emailSelectMethods</callback>
+    </pseudoconstant>
     <add>4.6</add>
   </field>
 </table>