Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2008 at 17:42 UTC
Updated:
22 Oct 2008 at 17:33 UTC
The hook_search documentation for versions 5.x and 6.x are incorrect.
http://api.drupal.org/api/function/hook_search/5
http://api.drupal.org/api/function/hook_search/6
I have documented what I found here: http://drupal.org/node/271392
check_outputdeprecated since Drupal 4.7.
And, the code, even when fixed, doesn't work. At least, I've not been able to get it to work. Hopefully I'm wrong, but it seems like an incredible oversight and I can't believe no one else has discovered it until now.
Comments
Comment #1
steven jones commentedThe example code is wrong. Is the doxygen comment incorrect too?
Comment #2
mfbThis documentation dates from Oct 31, 2004: http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hook... at which time it was lifted from the current state of node_search(): http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/node.module?revisi...
So yeah it's about time for the documentation to get updated again and for now you could look at node_search() for a working example.
Comment #3
Barry Madore commentedMoving
Comment #4
bdragon commentedSynced DRUPAL-5, DRUPAL-6--1, and HEAD with the respective node_search() function bodies.
Comment #5
bdragon commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.