Merge pull request #3679 from yashodha/CRM-14951
[civicrm-core.git] / api / v3 / DashboardContact.php
index ca3605aca338a3f2a95589e703c94e8fbe663d64..4df7815f4b84ede66aaedd72925016569729d45f 100644 (file)
@@ -83,6 +83,11 @@ function _civicrm_api3_dashboard_contact_create_spec(&$params) {
   unset($params['version']);
 }
 
+/**
+ * @param $params
+ *
+ * @return array|null
+ */
 function _civicrm_api3_dashboard_contact_check_params(&$params) {
   $dashboard_id = CRM_Utils_Array::value('dashboard_id', $params);
   if ($dashboard_id) {
@@ -92,4 +97,17 @@ function _civicrm_api3_dashboard_contact_check_params(&$params) {
     }
   }
   return NULL;
-}
\ No newline at end of file
+}
+
+/**
+ * Delete an existing dashboard-contact
+ *
+ * This method is used to delete any existing dashboard-board. the id of the dashboard-contact
+ * is required field in $params array
+ *
+ * {@getfields dashboard_contact_delete}
+ * @access public
+ */
+function civicrm_api3_dashboard_contact_delete($params) {
+  return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+}