Download & Extend

hook_search_item not being called

Project:SQL Search (Trip Search)
Version:5.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

In theme_trip_search_item(), $type never has the node type, so module_invoke($type, 'search_item', $item) never works. The problem appears to be the way $item['type'] is populated in _trip_search_do_search()

Comments

#1

if you change:
$str .= theme('trip_search_item', $item, $item['type']);
to:
$str .= theme('trip_search_item', $item, $node->type);
then does it work?

#2

Is this acknowledged as a bug?
Is it recommended to make that code adjustment?

nobody click here