function acquia_lift_get_udfs in Acquia Lift Connector 7.3
Returns the list of UDFs that can be mapped to.
Parameters
string $type: The type of udf to generate, one of: touch, person, event
Return value
array An array of UDFs defined in Acquia Lift Profile Manager.
1 call to acquia_lift_get_udfs()
File
- ./
acquia_lift.module, line 230 - acquia_lift.module Provides Acquia Lift Profiles integration.
Code
function acquia_lift_get_udfs($type) {
$counts = acquia_lift_get_udf_types();
if (!array_key_exists($type, $counts)) {
return array();
}
$count = $counts[$type];
for ($i = 1; $i <= $count; $i++) {
$udfs[] = $type . '_udf' . $i;
}
return $udfs;
}