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()
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
Comment #1
mindless commentedif you change:
$str .= theme('trip_search_item', $item, $item['type']);to:
$str .= theme('trip_search_item', $item, $node->type);then does it work?
Comment #2
Leeteq commentedIs this acknowledged as a bug?
Is it recommended to make that code adjustment?