summaryrefslogtreecommitdiff
path: root/modules/search.module
Commit message (Collapse)AuthorAge
* #36352: Don't prefix temporary table names after all.Steven Wittens2005-11-21
| | | | #36658: Make search query pgsql compatible.
* #36242: Array merge problems with module_invokeSteven Wittens2005-11-10
|
* - #36255: Fix db_query_temporary() in pgsqlSteven Wittens2005-11-04
| | | | - Prefix temporary table names (helps on restricted hosts)
* - Patch #26139 by webchick / Kieran / documentation team: improved admin ↵Dries Buytaert2005-11-01
| | | | help of core modules! /
* - Patch #30930 by m3avrck/deekayen: cured PHP5 warnings.Dries Buytaert2005-10-22
|
* - #22850: Search query containing / results in 404 on clean URLs.Steven Wittens2005-10-21
|
* - #28159: Advanced search features (hello from DrupalCon)Steven Wittens2005-10-18
| | | | | Presentation about it: http://www.acko.net/files/drupal-search-slim.pdf
* - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes.Dries Buytaert2005-10-11
|
* - Patch #29465: new form API by Adrian et al.Dries Buytaert2005-10-07
| | | | | | | TODO: + The contact.module was broken; a new patch for contact.module is needed. + Documentation is needed. + The most important modules need to be updated ASAP.
* - Patch #28784 by Neil: improved HTML/CSS of search form.Dries Buytaert2005-09-07
|
* - Patch #29385 by chx: no ?> add end of files.Dries Buytaert2005-08-25
|
* - #27624, #27614, #27627: dead codeSteven Wittens2005-07-29
|
* - #27626: Correct function nameSteven Wittens2005-07-29
|
* - #27531: Leftover string_length().Steven Wittens2005-07-27
|
* - #26688: Add mbstring support to Drupal and clear up string handling fuzzies.Steven Wittens2005-07-25
|
* - Patch #25603 by Stefan: made the sizes of forms consistent.Dries Buytaert2005-06-27
| | | | TODO: document the defaults in the PHPdoc comments.
* - Patch #22786 by mathias: now that db_affected_rows() returns the number of ↵Dries Buytaert2005-05-14
| | | | rows matched instead of only changed we can get rid of the hacks that worked around this.
* - Patch 20910 by chx: centralize print theme page.Dries Buytaert2005-04-24
|
* - Fix search index not wiping on admin settings change.Steven Wittens2005-04-23
|
* - #4166: Respect 'access userlist' permission for profile data.Steven Wittens2005-04-11
|
* - Patch #19739 by Uwe: corrected many typo's in the documentation and code ↵Dries Buytaert2005-03-31
| | | | comments
* - #18817: Clean up plain-text checking (see drupal-devel!)Steven Wittens2005-03-31
|
* - Part of #17747 was not committed (pgsql fixes).Steven Wittens2005-03-29
|
* - Use format_plural() for search status (items left to index)Steven Wittens2005-03-18
|
* - #19063: Use module_implements instead of hand-rolled routine.Steven Wittens2005-03-18
|
* - #18434: (search) Try wildcards automatically if there were no results.Steven Wittens2005-03-08
| | | | - Fix missing format_plural()
* #17747: PGSQL improvementsSteven Wittens2005-02-28
|
* - Oops: don't show refused words message if there are none.Steven Wittens2005-02-27
|
* - Fix submissions from search boxes in themesSteven Wittens2005-02-27
|
* - Search: fix search block stretching sidebarSteven Wittens2005-02-27
|
* More search usability improvements!Steven Wittens2005-02-27
| | | | | | | | | | | | | | | | - Clean URLs: search/type/keywords e.g. "search/node/drupal release". The search form is POST submitted, but drupal_gotos to a GET page. This makes it easy to copy/paste search URLs, and makes the pager a lot cleaner. - Remember the search keywords when switching between the search tabs. This is done through the same GET URLs rather than the session, so it does not mess up between multiple browser tabs. - Report which keywords were ignored because they were too short. - #820: Provide search block - Treat multiple wildcards in a row as one
* - Stripped white-space.Dries Buytaert2005-01-15
|
* Fixing search tabs going back to "content" when searching on other tabs.Steven Wittens2005-01-14
|
* - Some search doxygen tweaksSteven Wittens2005-01-13
|
* - Readding cron note.Steven Wittens2005-01-11
|
* - Make the search settings page more user-friendly.Steven Wittens2005-01-11
|
* Tweak api.module outputSteven Wittens2005-01-11
|
* Various additions, improvements and fixes to the search documentation.Steven Wittens2005-01-11
|
* - OopsieSteven Wittens2005-01-11
|
* - Ensure word length <= 50 bytesSteven Wittens2005-01-11
|
* - Fixing duplicate rows error during indexingSteven Wittens2005-01-11
| | | | - Fixing broken "pagerank" detection
* - Fix search excerpt highlighter marking substrings of words too + small ↵Steven Wittens2005-01-10
| | | | improvements
* - Updated watchod call.Dries Buytaert2005-01-09
|
* - Small changeDries Buytaert2004-12-31
|
* - Patch #14917 by UnConeD/Steven:Dries Buytaert2004-12-31
| | | | | | | | 1) The different types of search, which used to be radio button options in the search form, are now subtabs of "search" (default "search/node"). This seems better from a UI point of view, but also has another advantage: modules which implement a custom search form (flexinode, project) can add it as a subtab of search. This means that all search forms will be located in the same place, and also without needing an extra api call to search.module. 2) The current code was a bit hackish, as the indexing of comments along with nodes was hardcoded in node.module. Instead, I created a nodeapi operation "update index" which allows modules to add more data for a node that is being indexed. Comments are now indexed using this mechanism and from comment.module, which is a lot cleaner. 3) The search results format was also hardcoded to include "N comments". I replaced this with a nodeapi operation "search result" and moved the comment code to comment.module where it belongs. This op is quite useful, as for example I also modified upload.module to add "N attachments" to a search result if any are present.
* - Patch #13907 by Neil: less ways to set the page title.Dries Buytaert2004-12-15
| | | | | | | * Less logic in theme code. * Encourages use of the menu system. * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them. * Very slightly more efficient.
* - Removed some cruft: left-over xxx_help_page() functions.Dries Buytaert2004-12-11
|
* Search: wrong parameter order on search_wipe().Steven Wittens2004-12-02
|
* - Patch #13581 by Steven: Db_query() allows a variable amount of parameters ↵Dries Buytaert2004-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so you can pass the query arguments in. There is however an alternative syntax: instead of passing the query arguments as function arguments, you can also pass a single array with the query arguments in it. For example the following two statements are equivalent: db_query($query, $a, $b, $c); db_query($query, array($a, $b, $c)); This usage is particularly interesting when the query is constructed dynamically, and the amount of arguments to pass varies. In that case we use the second method to avoid using call_user_func_array(). This behaviour is not documented explicitly, but it is used in several places. However, db_query_range() and pager_query() do not support this syntax properly, which means there are several pieces of code which still revert to the ugly call_user_func_array() call. This patch updates db_query_range() and pager_query() so they support the array-passing method. I also added documentation about this method to each of the db functions. I also cleaned up the code for db_query (it was weird and hard to understand) and moved db_query() and db_queryd() from database.xxxxx.inc to database.inc: it was the same between both mysql and pgsql, as it doesn't do anything database specific. It just prefixes the tables and inserts the arguments. The actual db query is performed in _db_query(), which is still in database.xxxxx.inc. Finally, I updated several places with the new syntax, and the code is a lot cleaner. For example: - array_unshift($params, "SELECT u.* FROM {users} u WHERE $query u.status < 3"); - $params[] = 0; - $params[] = 1; - $result = call_user_func_array('db_query_range', $params); + $result = db_query_range("SELECT u.* FROM {users} u WHERE $query u.status < 3", $params, 0, 1); and - return call_user_func_array('db_query_range', array_merge(array($query), $args, array((int)$pager_from_array[$element], (int)$limit))); + return db_query_range($query, $args, (int)$pager_from_array[$element], (int)$limit); I've tested it on mysql. I didn't alter the actual db behaviour, so pgsql should be okay too. This patch is important because many people avoid the call_user_func_array() method and put data directly into the db query. This is very, very bad because the database prefix will be applied to it, and strip out braces. It's also generally bad form as you have to call check_query() yourself. With the new, documented syntax, there is no more excuse to put data directly in the query.
* - Patch #13443 by Moshe: got rid of the semi-implemented 'page link' ↵Dries Buytaert2004-11-24
| | | | feature. All themes currently support primary and secondary links so page links are now deprecated. Check your contributed modules and update them accordingly.