[drupal-devel] [bug] Bugfix (?) to search_data function (hook_search_item not working)

Robrecht Jacques drupal-devel at drupal.org
Thu Sep 8 22:27:05 UTC 2005


Issue status update for 
http://drupal.org/node/28767
Post a follow up: 
http://drupal.org/project/comments/add/28767

 Project:      Drupal
 Version:      cvs
 Component:    search.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  adixon
 Updated by:   Robrecht Jacques
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/search_item.path (749 bytes)

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




Robrecht Jacques



Previous comments:
------------------------------------------------------------------------

Fri, 12 Aug 2005 16:47:57 +0000 : adixon

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.







More information about the drupal-devel mailing list