diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-26 19:22:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-26 19:22:22 +0000 |
commit | 66190b17877a09be27f8c641bf267b334f9bbdae (patch) | |
tree | 678bfec200245a5a2115ee0fd07533478d10fcc3 /modules/node.module | |
parent | 667022830ee203a5779ca44d82e2a9d93a1b21f8 (diff) | |
download | brdo-66190b17877a09be27f8c641bf267b334f9bbdae.tar.gz brdo-66190b17877a09be27f8c641bf267b334f9bbdae.tar.bz2 |
- Patch #5393 by Goba: changes the search hook return value, and requires an array
containing two elements, the first being the requested title, and the second being
the result list. Advantages:
* Cleaner search code in common.inc
* Po extraction is possible and works fine
* No hardcoded exceptions for node and comment modules, since any module can
return results in order of relevance (or another order)
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module index 7b0bd1cb0..c902fd3b5 100644 --- a/modules/node.module +++ b/modules/node.module @@ -566,7 +566,7 @@ function node_search($keys) { // $find = do_search(array("keys" => $keys, "type" => "node", "select" => "select s.lno as lno, n.title as title, n.created as created, u.uid as uid, u.name as name, s.count as count FROM {search_index} s, {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE s.lno = n.nid AND s.type = 'node' AND s.word like '%' AND n.status = 1")); - return $find; + return array(t("Matching nodes ranked in order of relevance"), $find); } function node_settings() { |