summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-26 19:22:22 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-26 19:22:22 +0000
commit66190b17877a09be27f8c641bf267b334f9bbdae (patch)
tree678bfec200245a5a2115ee0fd07533478d10fcc3 /modules/user.module
parent667022830ee203a5779ca44d82e2a9d93a1b21f8 (diff)
downloadbrdo-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/user.module')
-rw-r--r--modules/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user.module b/modules/user.module
index 68c2b6eb7..79f490ad5 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -300,7 +300,7 @@ function user_search($keys) {
while ($account = db_fetch_object($result)) {
$find[] = array("title" => $account->name, "link" => (strstr(request_uri(), "admin") ? url("admin/user/edit/$account->uid") : url("user/view/$account->uid")), "user" => $account->name);
}
- return $find;
+ return array(t("Matching users"), $find);
}
function user_block($op = "list", $delta = 0) {