No rows added in top_searches table

jaxond - June 24, 2008 - 16:35
Project:Top Searches
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:by design
Description

I installed and enabled the module. The top_searches table was created, but no rows are being inserted as I do searches. My search form is a view with an exposed filter on the search index, into which users may enter search terms. (Not the standard Drupal search block.) Is that the problem?

#1

z.stolar - June 24, 2008 - 16:44
Status:active» by design

Indeed.
We are currently firing the action, to add searches to the DB, when the search form is submitted (using form_alter).
Former versions of this module, used a preprocess hook, which was insufficient.

You can achieve the same action, by also using hook_form_alter, on your form. See the example within the module.

If you want your solution to be included in future versions of this module, please propose it here.

 
 

Drupal is a registered trademark of Dries Buytaert.