4 * @deprecated api notice
5 * @param array entities
6 * @return array of deprecated api entities
8 function _civicrm_api3_entity_deprecation($entities) {
10 if (!empty($entities['values'])) {
11 foreach ($entities['values'] as $entity) {
12 if (is_string(_civicrm_api3_deprecation_check($entity))) {
13 $deprecated[] = $entity;
21 * Placeholder function. This should never be called, as it doesn't have any meaning
23 function civicrm_api3_entity_create($params) {
24 return civicrm_api3_create_error("API (Entity, Create) does not exist Creating a new entity means modifying the source code of civiCRM.");
28 * Placeholder function. This should never be called, as it doesn't have any meaning
30 function civicrm_api3_entity_delete($params) {
31 return civicrm_api3_create_error("API (Entity, Delete) does not exist Deleting an entity means modifying the source code of civiCRM.");
35 * Placeholder function. This should never be called, as it doesn't have any meaning
37 function civicrm_api3_entity_getfields($params) {
38 // we return an empty array so it makes it easier to write generic getdefaults / required tests
39 // without putting an exception in for entity
40 return civicrm_api3_create_success(array());