Merge pull request #2792 from deepak-srivastava/dedupe-hooks
[civicrm-core.git] / api / v3 / Entity.php
CommitLineData
6a488035 1<?php
6a488035
TO
2
3require_once 'api/v3/utils.php';
4
6a488035
TO
5/**
6 * Placeholder function. This should never be called, as it doesn't have any meaning
7 */
8function civicrm_api3_entity_create($params) {
106a7a3a 9 return civicrm_api3_create_error("API (Entity, Create) does not exist Creating a new entity means modifying the source code of civiCRM.");
6a488035
TO
10}
11
12/**
13 * Placeholder function. This should never be called, as it doesn't have any meaning
14 */
15function civicrm_api3_entity_delete($params) {
106a7a3a 16 return civicrm_api3_create_error("API (Entity, Delete) does not exist Deleting an entity means modifying the source code of civiCRM.");
6a488035
TO
17}
18
19/**
20 * Placeholder function. This should never be called, as it doesn't have any meaning
21 */
22function 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