Closed (fixed)
Project:
Computed Field
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 09:36 UTC
Updated:
25 May 2009 at 08:28 UTC
I've been trying to use the following CiviCRM API code which works fine in a PHP filtered page node, however, using the same code in a Computed Field gives me undefined function errors.
if (module_exists('civicrm')) {
civicrm_initialize(TRUE);
$location_types = crm_get_property_values('location_type');
}
Fatal error: Call to undefined function crm_get_property_values()
I presume this may be because the computed field is parsed before CiviCRM has had a chance to register it's functions? (lower level).
How do I access Civis API? Please help!
Rob
Comments
Comment #1
Rob_F-1 commentedComment #2
panhongwei commentedPlease view:
http://forum.civicrm.org/index.php?topic=7526.0