id = $phoneID; if ($phoneDAO->find()) { while ($phoneDAO->fetch()) { $phoneDAO->delete(); return civicrm_api3_create_success($phoneDAO->id, $params, $phoneDAO); } } else { return civicrm_api3_create_error('Could not delete phone with id ' . $phoneID); } } /** * civicrm_api('Phone','Get') to retrieve one or more phones is implemented by * function civicrm_api3_phone_get ($params) into the file Phone/Get.php * Could have been implemented here in this file too, but we moved it to illustrate the feature with a real usage. * */