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