Merge branch 4.5 into master
[civicrm-core.git] / api / v3 / Entity.php
index e0c30dbf80947f72b677e58f76899388f57578ca..982876b8a5301cb8d9c055619cf78da2bca1de3e 100644 (file)
@@ -1,5 +1,23 @@
 <?php
 
+/**
+ * @deprecated api notice
+ * @param array entities
+ * @return array
+   *   of deprecated api entities
+ */
+function _civicrm_api3_entity_deprecation($entities) {
+  $deprecated = array();
+  if (!empty($entities['values'])) {
+    foreach ($entities['values'] as $entity) {
+      if (is_string(_civicrm_api3_deprecation_check($entity))) {
+        $deprecated[] = $entity;
+      }
+    }
+  }
+  return $deprecated;
+}
+
 /**
  *  Placeholder function. This should never be called, as it doesn't have any meaning
  */
@@ -22,4 +40,3 @@ function civicrm_api3_entity_getfields($params) {
   // without putting an exception in for entity
   return civicrm_api3_create_success(array());
 }
-