Added pseudoconstant for state province
[civicrm-core.git] / xml / schema / Core / WordReplacement.xml
index 9c64a1afe6eee2bd7099120f7234df524fa5a53d..e3a544ce29d8fcacd27676f539eb604b5124466f 100644 (file)
@@ -8,6 +8,7 @@
   <add>4.4</add>
   <field>
     <name>id</name>
+    <title>Word Replacement ID</title>
     <type>int unsigned</type>
     <required>true</required>
     <comment>Word replacement ID</comment>
@@ -19,6 +20,7 @@
   </primaryKey>
   <field>
     <name>find_word</name>
+    <title>Replaced Word</title>
     <type>varchar</type>
     <length>255</length>
     <collate>utf8_bin</collate>
@@ -27,6 +29,7 @@
   </field>
   <field>
     <name>replace_word</name>
+    <title>Replacement Word</title>
     <type>varchar</type>
     <length>255</length>
     <collate>utf8_bin</collate>
     <add>4.4</add>
   </index>
   <field>
-       <name>match_type</name>
-       <type>varchar</type>
-       <length>16</length>
-       <default>"wildcardMatch"</default>
-       <pseudoconstant>
-         <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
-       </pseudoconstant>
-       <add>4.4</add>
-       <html>
-         <type>Select</type>
-       </html>
+     <name>match_type</name>
+     <title>Word Replacement Match Type</title>
+     <type>varchar</type>
+     <length>16</length>
+     <default>"wildcardMatch"</default>
+     <pseudoconstant>
+       <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
+     </pseudoconstant>
+     <add>4.4</add>
+     <html>
+       <type>Select</type>
+     </html>
   </field>
   <field>
     <name>domain_id</name>
+    <title>Word Replacement Domain ID</title>
     <type>int unsigned</type>
+    <pseudoconstant>
+      <table>civicrm_domain</table>
+        <keyColumn>id</keyColumn>
+        <labelColumn>name</labelColumn>
+    </pseudoconstant>
     <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
     <add>1.1</add>
   </field>