Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Apr 2009 at 19:30 UTC
Updated:
20 Aug 2010 at 11:20 UTC
Jump to comment: Most recent file
Recently changes in node hooks missed changing search module code documentation.
Attached patch correct this, but may not be perfect.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | search-module3-D6.patch | 1.74 KB | rdrh555 |
| #9 | search-module2-D6.patch | 1.7 KB | rdrh555 |
| #5 | search-module-D6.patch | 1.61 KB | rdrh555 |
| search_docs.patch | 1.63 KB | recidive |
Comments
Comment #1
cburschkaThat seems to cover it.
Good call on removing "hook_search_item". I've searched the API and the code extensively and found that not only is this hook not documented, it also isn't called. That line is the only occurrence of "search_item" anywhere in Drupal 7. :)
Comment #2
dries commentedCommitted to CVS HEAD. Thanks!
Comment #3
cburschkahook_search_item didn't exist in Drupal 6 either.
*Or* in Drupal 5.
*Or* in Drupal 4.7.
For giggles, I grepped through all our major releases and head to go all the way back to Drupal 4.6 to find
module_invoke($type, 'search_item');. Talk about a blast from the past. :)Comment #4
jhodgdonThis still needs to be fixed in Drupal 6:
http://api.drupal.org/api/group/search/6
Comment #5
rdrh555 commentedComment #6
jhodgdonPlease check this over. I think some of the changes in this patch are D6->D7 patches. For instance, in D6 we still use hook_nodeapi, where in D7 this was changed to a variety of different hooks.
Comment #7
rdrh555 commentedOh, I changed the $op parameters into functions (like D7), but should have left them alone. The D6 issue is on: removing "hook_search_item"
and
"implement nodeapi('update index') and nodeapi('search result')"
should perhaps be
"implement hook_nodeapi('update index') and hook_nodeapi('search result')"?
Am I close?
Comment #8
jhodgdonYes, that's what needs to be done.
Comment #9
rdrh555 commentedGreat. *Note -I didn't want to wrap the functions on 2 lines, thus the shorter 'Specifically...' line. Hope that's acceptable.
Comment #10
jhodgdonLooks good, thanks.
Comment #11
jhodgdonOops, spoke to soon - patch needs to be rerolled from Drupal root
Comment #12
rdrh555 commentedComment #13
jhodgdonThat's better, thanks!
Comment #14
gábor hojtsyThanks, committed.