Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
- node_access_join_sql() and node_access_where_sql() no longer exist
- AND not necessary in $join sql statement
check_output
deprecated 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 CreditAttribution: 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 CreditAttribution: Barry Madore commentedMoving
Comment #4
bdragon CreditAttribution: bdragon commentedSynced DRUPAL-5, DRUPAL-6--1, and HEAD with the respective node_search() function bodies.
Comment #5
bdragon CreditAttribution: bdragon commentedComment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.