hook_search_item not being called
bradbanister - April 4, 2007 - 18:50
| Project: | SQL Search (Trip Search) |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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()

#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?