*** modulesold\search.module Thu Sep 22 22:25:11 2005 --- modules\search.module Tue Nov 29 08:43:36 2005 *************** *** 1,5 **** --- 869,900 ---- return $output; } ! /** ! * Ancillary function for search_block: builds a block of recent search terms ! * @return string themed block ! * ! */ ! function _search_recent() ! { ! $sq = " ! SELECT ! distinct message query ! FROM ! {watchdog} ! WHERE ! (type = 'search') AND (message like '%(content).') ! ORDER BY timestamp DESC ! " ; ! $q = db_query_range($sq, 0, 5); ! $ar = array(); ! while ($o = db_fetch_object($q)) ! { ! $term = substr(substr($o->query, 12),0,-16); ! $ar[] = l($term, 'search/node/' . $term); ! } ! $output = theme_item_list($ar, NULL); ! unset ($ar); ! return $output ; ! } ! ?>