Merge pull request #3679 from yashodha/CRM-14951
[civicrm-core.git] / api / v3 / Location.php
CommitLineData
6a488035 1<?php
6a488035 2
6a488035
TO
3/**
4 * Functions to inform caller that Location is obsolete and Address, Phone, Email, Website should be used
5 */
6function civicrm_api3_location_create($params) {
106a7a3a 7 return civicrm_api3_create_error("API (Location, Create) does not exist, use the Address/Phone/Email/Website API instead", array('obsoleted' => TRUE));
6a488035
TO
8}
9
aa1b1481
EM
10/**
11 * @param $params
12 *
13 * @return array
14 */
6a488035 15function civicrm_api3_location_get($params) {
106a7a3a 16 return civicrm_api3_create_error("API (Location, Get) does not exist, use the Address/Phone/Email/Website API instead", array('obsoleted' => TRUE));
6a488035
TO
17}
18
aa1b1481
EM
19/**
20 * @param $params
21 *
22 * @return array
23 */
6a488035 24function civicrm_api3_location_delete($params) {
106a7a3a 25 return civicrm_api3_create_error("API (Location, Delete) does not exist, use the Address/Phone/Email/Website API instead", array('obsoleted' => TRUE));
6a488035
TO
26}
27