Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-28-11-04-58
[civicrm-core.git] / api / v3 / Entity.php
1 <?php
2
3 require_once 'api/v3/utils.php';
4
5 /**
6 * Placeholder function. This should never be called, as it doesn't have any meaning
7 */
8 function civicrm_api3_entity_create($params) {
9 return civicrm_api3_create_error("API (Entity, Create) does not exist Creating a new entity means modifying the source code of civiCRM.");
10 }
11
12 /**
13 * Placeholder function. This should never be called, as it doesn't have any meaning
14 */
15 function civicrm_api3_entity_delete($params) {
16 return civicrm_api3_create_error("API (Entity, Delete) does not exist Deleting an entity means modifying the source code of civiCRM.");
17 }
18
19 /**
20 * Placeholder function. This should never be called, as it doesn't have any meaning
21 */
22 function civicrm_api3_entity_getfields($params) {
23 // we return an empty array so it makes it easier to write generic getdefaults / required tests
24 // without putting an exception in for entity
25 return civicrm_api3_create_success(array());
26 }
27