4 * Get list of deprecated entities.
6 * This is called by the api wrapper when returning the result of api.Entity.get.
8 * @param array $entities
11 * Array of deprecated api entities
13 function _civicrm_api3_entity_deprecation($entities) {
14 $deprecated = array();
15 if (!empty($entities['values'])) {
16 foreach ($entities['values'] as $entity) {
17 if (is_string(_civicrm_api3_deprecation_check($entity))) {
18 $deprecated[] = $entity;
26 * Placeholder function.
28 * This should never be called, as it doesn't have any meaning.
30 * @param array $params
34 function civicrm_api3_entity_create($params) {
35 return civicrm_api3_create_error("API (Entity, Create) does not exist Creating a new entity means modifying the source code of civiCRM.");
39 * Placeholder function.
41 * This should never be called, as it doesn't have any meaning.
43 * @param array $params
47 function civicrm_api3_entity_delete($params) {
48 return civicrm_api3_create_error("API (Entity, Delete) does not exist Deleting an entity means modifying the source code of civiCRM.");
52 * Placeholder function.
54 * This should never be called, as it doesn't have any meaning.
56 * @param array $params
60 function civicrm_api3_entity_getfields($params) {
61 // we return an empty array so it makes it easier to write generic getdefaults / required tests
62 // without putting an exception in for entity
63 return civicrm_api3_create_success(array());