I think that line 678:
$output .= theme('search_item', $entry, $type);
should be
$output .= theme('search_item', $entry, $entry['type']);
so that hook_search_item is in fact invoked for the particular entry's module type.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | search_item.path | 749 bytes | Robrecht Jacques |
Comments
Comment #1
Robrecht Jacques commentedPlaying patch bingo.
I'm not sure if what adixon says is correct, but I've rerolled the path. Looks like a sensible thing to do, but I'm not sure how to test it as I haven't used search.module before.
Comment #2
Steven commentedThis patch is not really a good idea for two reasons:
Regardless, you are free to do what you want in theme_search_item(), by overriding it in your own theme.