Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module provides an API to save searches from several search module. Modules that need to save searches can implements this in the right place:

$type = 'My search module';
$data = array(
  'path' => 'mysearch', // Base path to the search form.
  'path_options' => array('query' => $search_query), // search query.
  'description' => $search_string, // The search summary or description.
);
search_history_api_save($type, $data);

Features

  • Save searches
  • view search history in one page
  • relaunch searches without saving it again
  • Modify searches (Search are re-launched and modified when users search again)

Modules implementing search history API

Project information