drupalcck

Drupal: hook_search only for a content type


I would like to build a custom search module in Drupal 6 for searching through CCK. I need the user to search between his nodes (node.uid=x) and of a certain type (type='xyz'). I think I have to implement hook_search but I don't know where to put my filters. Can anyone help me?


Solution

  • You might try creating a Views with an exposed filter, it's the absolute easiest way to implementing your idea.