// this allows the calling function to send in multiple entity types
$in=$entityType;
}
else{
// quote it
$in="'$entityType'";
}
$params=[];
$strWhere="WHERE civicrm_custom_group.is_active = 1 AND civicrm_custom_field.is_active = 1 AND civicrm_custom_group.extends IN ($in) AND civicrm_custom_group.is_multiple = 0";
$orderBy="ORDER BY civicrm_custom_group.weight, civicrm_custom_group.title, civicrm_custom_field.weight, civicrm_custom_field.label";