Mercurial > defr > drupal > core
comparison modules/search/search.module @ 9:acef7ccb09b5 6.4
Drupal 6.4
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:08 +0100 |
parents | 2427550111ae |
children | 589fb7c02327 |
comparison
equal
deleted
inserted
replaced
8:85cbd6048071 | 9:acef7ccb09b5 |
---|---|
1 <?php | 1 <?php |
2 // $Id: search.module,v 1.250.2.2 2008/04/09 21:11:49 goba Exp $ | 2 // $Id: search.module,v 1.250.2.3 2008/08/13 06:59:49 dries Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables site-wide keyword searching. | 6 * Enables site-wide keyword searching. |
7 */ | 7 */ |
909 * @return | 909 * @return |
910 * An array of SIDs for the search results. | 910 * An array of SIDs for the search results. |
911 * | 911 * |
912 * @ingroup search | 912 * @ingroup search |
913 */ | 913 */ |
914 function do_search($keywords, $type, $join1 = '', $where1 = '1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') { | 914 function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') { |
915 $query = search_parse_query($keywords); | 915 $query = search_parse_query($keywords); |
916 | 916 |
917 if ($query[2] == '') { | 917 if ($query[2] == '') { |
918 form_set_error('keys', t('You must include at least one positive keyword with @count characters or more.', array('@count' => variable_get('minimum_word_size', 3)))); | 918 form_set_error('keys', t('You must include at least one positive keyword with @count characters or more.', array('@count' => variable_get('minimum_word_size', 3)))); |
919 } | 919 } |