Merge branch 4.5 into master
[civicrm-core.git] / api / v3 / Entity.php
index ef461a7d08bab4187d8975ecb37d52b7607ba752..982876b8a5301cb8d9c055619cf78da2bca1de3e 100644 (file)
@@ -1,6 +1,22 @@
 <?php
 
-require_once 'api/v3/utils.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
@@ -24,4 +40,3 @@ function civicrm_api3_entity_getfields($params) {
   // without putting an exception in for entity
   return civicrm_api3_create_success(array());
 }
-