Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
26 Jan 2009 at 19:37 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidSo yeah...we've had this hook undocumented since May 2008. Bumping to critical.
Comment #2
webchickSubscribe. :\
Comment #3
webchickAlso? While we're documenting this, can we please change it to hook_search_ranking()? I can think of lots of things that might be ranked. And this would help alphabetize it with the other search hooks.
Comment #4
mikey_p commentedComment #5
cwgordon7 commentedI'll document the hook. For the sake of neatness, I'll move the hook's renaming into a separate issue.
Comment #6
lakka commentedFor more info - see http://drupal.org/node/145242
Comment #7
berdirHint: This is currently a node.module specific hook, and not search.module.
#394182: DBTNG search.module would help to make this generic, maybe something like hook_search_ranking_$type.
Comment #8
rfayPinged cwgordon7 by email to find out status of this.
Comment #9
cwgordon7 commentedHere's a patch.
Comment #10
mikey_p commentedVery nice ;)
Is there an issue to change the name somewhere else? Both of the other issue linked seem to go in other directions.
Comment #11
berdirMy *idea* was to move this to search.module and make it more generic, something like hook_search_$type_ranking as it is currently limited to the node search. But the search.module DBTNGify patch is still not commited and I'm not sure if there is time to do this before code freeze.
Comment #12
webchickExcellent work!! :D
Committed to HEAD. Marking down to 6.x. Note that this can be committed to contributions/docs/hooks by anyone with CVS access.
Comment #13
cwgordon7 commentedDoesn't make much sense to port this to 6.x because the hook doesn't exist there. :)