public function ReferencesImportSettingsBase::entityBundleIsAvailable in CRM Core 7
Returns TRUE if entity bundle available in current settings.
1 call to ReferencesImportSettingsBase::entityBundleIsAvailable()
- ReferencesImportSettingsBase::getAvailableReferences in modules/
crm_core_data_import/ plugins/ settings/ ReferencesImportSettingsBase.inc - Build a list of available references relevant to current settings.
File
- modules/
crm_core_data_import/ plugins/ settings/ ReferencesImportSettingsBase.inc, line 237 - Base references settings handler for CRM Core Data Import.
Class
- ReferencesImportSettingsBase
- @file Base references settings handler for CRM Core Data Import.
Code
public function entityBundleIsAvailable($settings, $field_entitiy_type, $bundle) {
$available = FALSE;
$entity_types = $this
->entityList($settings);
foreach ($entity_types as $entity_type) {
if ($entity_type['entity_type'] == $field_entitiy_type && $entity_type['bundle'] == $bundle) {
$available = TRUE;
}
}
return $available;
}