Download & Extend

No rows added in top_searches table

Project:Top Searches
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

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?

Comments

#1

Status:active» closed (works as designed)

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.