+ $entityId = CRM_Utils_Request::retrieve('entityID', 'Positive', $this);
+ if(!empty($entityId)) {
+ $subType = CRM_Contact_BAO_Contact::getContactSubType($entityId, ',');
+ }
+ CRM_Custom_Form_CustomData::preProcess($this, NULL, $subType, NULL, NULL, $entityId);