<?php
-// $Id$
/*
+--------------------------------------------------------------------+
*/
require_once 'api/v3/utils.php';
-require_once 'CRM/Core/BAO/UFGroup.php';
-require_once 'CRM/Core/BAO/UFField.php';
-require_once 'CRM/Core/Permission.php';
-
/**
* Retrieve Profile field values.
*
if ($isContactActivityProfile) {
civicrm_api3_verify_mandatory($params, NULL, array('activity_id'));
- require_once 'CRM/Profile/Form.php';
$errors = CRM_Profile_Form::validateContactActivityProfile($params['activity_id'],
$params['contact_id'],
$params['profile_id']
if ($isContactActivityProfile) {
civicrm_api3_verify_mandatory($params, NULL, array('activity_id'));
- require_once 'CRM/Profile/Form.php';
$errors = CRM_Profile_Form::validateContactActivityProfile($params['activity_id'],
$params['contact_id'],
$params['profile_id']
}
if (isset($profileFields['tag'])) {
- require_once 'CRM/Core/BAO/EntityTag.php';
CRM_Core_BAO_EntityTag::create($tags,
'civicrm_contact',
$params['contact_id']
function civicrm_api3_profile_apply($params) {
civicrm_api3_verify_mandatory($params, NULL, array('profile_id'));
- require_once 'CRM/Contact/BAO/Contact.php';
if (!CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $params['profile_id'], 'is_active')) {
return civicrm_api3_create_error('Invalid value for profile_id');
*/
function civicrm_api3_profile_getfields($params) {
$dao = _civicrm_api3_get_DAO('UFGroup');
- $file = str_replace('_', '/', $dao) . ".php";
- require_once ($file);
$d = new $dao();
$fields = $d->fields();
return civicrm_api3_create_success($fields);