Skip to content
Snippets Groups Projects
Commit 2bced687 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #674988 by jhodgdon: fixed search module watchdog entry.

parent efcbfc3e
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,11 @@ function search_view($type = 'node') {
// Only perform search if there is non-whitespace search term:
$results = '';
if (trim($keys)) {
// Log the search keys:
watchdog('search', '%keys (@type).', array('%keys' => $keys, '@type' => module_invoke($type, 'search', 'name')), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys));
// Log the search keys.
$info = search_get_info();
watchdog('search', 'Searched %type for %keys.', array('%keys' => $keys, '%type' => $info[$type]['title']), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys));
// Collect the search results:
// Collect the search results.
$results = search_data($keys, $type);
// Construct the search form.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment