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

mindless - April 8, 2007 - 22:01

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

DanielTheViking - June 2, 2007 - 22:36

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

 
 

Drupal is a registered trademark of Dries Buytaert.