There is a setting in this module for 'Select data to display below each result.', whcih contains 'Content type' as an option.

In drupal 6 there was $variables['info']['type'] that was used for this but it doesn't exist in drupal 7.

All you have now is $variables['info']['module'] which would just have 'node' instead of the content type/bundle.

See #1517032: Update search-result.tpl.php code comments to reflect new $info_split default keys and http://api.drupal.org/api/drupal/modules!search!search.pages.inc/functio...

So this module either needs to get rid of that option, or it needs to add the type to the info array if it can be found, for example from $variables['result']['type'], if it is a node result.

Comments

rooby’s picture

Here is a patch that will apply cleanly over the top of the patch in #1542846-1: Redundant code in custom_search_preprocess_search_result()

rooby’s picture

Status: Active » Needs review
StatusFileSize
new711 bytes

Here is a version of the same patch that applies to a clean version of custom_search.

jdanthinne’s picture

Status: Needs review » Fixed

Thanks. Pushed to DEV.
Btw, this module needs a co-maintainer, if interested…

rooby’s picture

I'd be happy to do some issue queue maintenance from time to time - reviewing & committing patches etc.
But I wouldn't be able to dedicate large amounts of time regularly.

So if that suits you I'd be happy to.

jdanthinne’s picture

Ok then, you're now a co-maintainer. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.