Merge pull request #456 from colemanw/help
[civicrm-core.git] / api / v3 / Contact.php
index 2efb02cff148e90b5978f4c56d43fe5dfff5ad7f..7ccbbfb4730818e17b7053c49afea60bf3132fba 100644 (file)
@@ -130,7 +130,7 @@ function civicrm_api3_contact_create($params) {
   return civicrm_api3_create_success($values, $params, 'Contact', 'create');
 }
 
-/*
+/**
  * Adjust Metadata for Create action
  *
  * @param array $params array or parameters determined by getfields
@@ -142,6 +142,10 @@ function _civicrm_api3_contact_create_spec(&$params) {
     'title' => 'Current Employer',
     'description' => 'Name of Current Employer',
   );
+  $params['dupe_check'] = array(
+    'title' => 'Check for Duplicates',
+    'description' => 'Throw error if contact create matches dedupe rule',
+  );
 }
 
 /**
@@ -189,7 +193,8 @@ function civicrm_api3_contact_getcount($params) {
   $count = _civicrm_api3_get_using_query_object('contact', $params, $options,1);
   return $count;
 }
-/*
+
+/**
  * Adjust Metadata for Get action
  *
  * @param array $params array or parameters determined by getfields
@@ -228,7 +233,7 @@ function _civicrm_api3_contact_get_spec(&$params) {
   $params['tag']['title'] = 'Assigned tags (filter, array)';
 }
 
-/*
+/**
  * We are supporting 'showAll' = 'all', 'trash' or 'active' for contact get
  * and for getcount
  * - hopefully some day we'll come up with a std syntax for the 3-way-boolean of