<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<p>I'm not saying that hook_search does not work. I'm saying that the
api documentation for hook_search, what I tried to use in order to
learn how to use hook_search, is incorrect. I have documented what I
found here: <a href="http://drupal.org/node/271392"
title="http://drupal.org/node/271392" rel="nofollow">http://drupal.org/node/271392</a></p>
<ul>
<li>node_access_join_sql() and node_access_where_sql() no longer
exist
</li>
<li><b>AND</b> not necessary in $join sql statement
</li>
<li><code>check_output</code>deprecated since Drupal 4.7.
</li>
</ul>
<p>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.</p>
Opened Drupal Documentation issue here: <a class="moz-txt-link-freetext" href="http://drupal.org/node/271604">http://drupal.org/node/271604</a><br>
<br>
Thanks.<br>
<br>
-ron<br>
<br>
Frédéric G. MARAND wrote:<br>
<blockquote cite="midC0E93BE421A74A40B7DE02FFAAE515C4@PCdeMarand"
type="cite">Could you describe why you think the documentation is
incorrect ? I've used it to create other searches without specific
problems. How was core not compliant with the documentation in your
case ?
<br>
<br>
Also, could you please open this as an issue against Drupal/search or
Documentation/In CVS so the issue and its eventual resolution remain
more widely available in the future ? Others might meet the same
problem as you.
<br>
<br>
Frederic G. MARAND
<br>
OSInet
<br>
<br>
----- Original Message ----- From: "Ron Parker" <a class="moz-txt-link-rfc2396E" href="mailto:sysop@scbbs.com"><sysop@scbbs.com></a>
<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:development@drupal.org"><development@drupal.org></a>
<br>
Sent: Tuesday, June 17, 2008 7:49 PM
<br>
Subject: [development] Help with hook_search
<br>
<br>
<br>
<br>
I just submitted an issue here: <a class="moz-txt-link-freetext" href="http://drupal.org/node/271604">http://drupal.org/node/271604</a>. The
<br>
Drupal 5.x and 6.x hook_search documentation is incorrect.
<br>
<br>
I just want to add another tab to the search form that, for right now,
<br>
just does another regular search. Not specialized in any way (at least
<br>
right now). Just a normal search, but the api documentation is
<br>
incorrect and I can't find any examples anywhere of how to do this.
<br>
<br>
Can someone point me in the right direction, or show me the hook_search
<br>
api code that *does* work?
<br>
<br>
Thanks!
<br>
<br>
-ron
<br>
<br>
--
<br>
Ron Parker
<br>
Software Creations <a class="moz-txt-link-freetext" href="http://www.scbbs.com">http://www.scbbs.com</a>
<br>
Self-Administration Web Site <a class="moz-txt-link-freetext" href="http://saw.scbbs.com">http://saw.scbbs.com</a>
<br>
SDSS Subscription Mgmt Service <a class="moz-txt-link-freetext" href="http://sdss.scbbs.com">http://sdss.scbbs.com</a>
<br>
Central Ave Dance Ensemble <a class="moz-txt-link-freetext" href="http://www.centralavedance.com">http://www.centralavedance.com</a>
<br>
R & B Salsa <a class="moz-txt-link-freetext" href="http://www.randbsalsa.com">http://www.randbsalsa.com</a>
<br>
<br>
<br>
<br>
--------------------------------------------------------------------------------
<br>
<br>
<br>
<br>
No virus found in this incoming message.
<br>
Checked by AVG.
<br>
Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date:
16/06/2008 07:20
<br>
<br>
<br>
__________ NOD32 3194 (20080617) Information __________
<br>
<br>
This message was checked by NOD32 antivirus system.
<br>
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ron Parker
Software Creations <a class="moz-txt-link-freetext" href="http://www.scbbs.com">http://www.scbbs.com</a>
Self-Administration Web Site <a class="moz-txt-link-freetext" href="http://saw.scbbs.com">http://saw.scbbs.com</a>
SDSS Subscription Mgmt Service <a class="moz-txt-link-freetext" href="http://sdss.scbbs.com">http://sdss.scbbs.com</a>
Central Ave Dance Ensemble <a class="moz-txt-link-freetext" href="http://www.centralavedance.com">http://www.centralavedance.com</a>
R & B Salsa <a class="moz-txt-link-freetext" href="http://www.randbsalsa.com">http://www.randbsalsa.com</a>
</pre>
</body>
</html>