You are here

public function CRMCoreDataDestinationHandler::getEntityBundles in CRM Core 7

Build array of available bundles.

Return value

array Available bundles.

1 call to CRMCoreDataDestinationHandler::getEntityBundles()
CRMCoreDataDestinationHandler::getBundles in modules/crm_core_data_import/plugins/destination/CRMCoreDataDestinationHandler.inc
Returns available bundles and their labels.

File

modules/crm_core_data_import/plugins/destination/CRMCoreDataDestinationHandler.inc, line 47
Default destination handler for CRM Core Data Import

Class

CRMCoreDataDestinationHandler
@file Default destination handler for CRM Core Data Import

Code

public function getEntityBundles() {
  $bundles_result = array();
  $bundles = field_info_bundles($this->entityType);
  foreach ($bundles as $key => $bundle) {
    $bundles_result[$key] = $bundle['label'];
  }
  return $bundles_result;
}