I had been using Drupal 5.7. I had created modules like moviehome.module and page page-moviehome.tpl.php .
I need to implement search functionality on this page say need to search movies from Db.
So how i can implement search mechanism in moviehome.module or page-moviehome.tpl.php file.

I had created hook
function moviehome_search($op = 'search', $keys = NULL)
{
}
in moviehome.module but dont have idea about to call this and where to code so that search results will
appeared on my page.
Does i need to create another page for showing search results? If so then how i can?

Comments

sszalla’s picture

Are you using the Search Keywords module? Reading your post your questions seem to have nothing to do with this module.

To implement a simple custom search page for single content types I used the Views and Views Fast Search modules. I suggest you check them out.

jitendra_k’s picture

Yes,
I am using hook in moviehome.module but Dont Know how to use it or what things need to do and show the results. I use the Search Keyword module itself given by Drupal.

Please suggest..

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Search Keywords is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.