Problem/Motivation

When using the Content Type facet, the labels for Profile2 bundles are displayed as their machine name instead of the display label stored in the entity data.

Other Solr modules, like Apache Solr Attachments and ApacheSolr Term implement a hook to include their entity type in the list to map for bundle names. For example, see: #1415618: Taxonomy term facet bundles are displayed as machine name and http://cgit.drupalcode.org/apachesolr_attachments/tree/apachesolr_attach...

Proposed resolution

Use hook_facetapi_facet_info_alter() to register the profile2 entity type for Facet API's bundle name mapping.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arithmetric’s picture

Status: Active » Needs review
FileSize
1.1 KB

Attached is a patch to implement hook_facetapi_facet_info_alter() to register the profile2 entity type for Facet API's bundle name mapping.

arithmetric’s picture

Issue summary: View changes
davidburns’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected!