******************************************************************** D R U P A L M O D U L E ******************************************************************** Name: Search Restrict Author: Robert Castelo Drupal: 6.x ******************************************************************** DESCRIPTION: Restrict by role who can search for each content type. Approach of this module is to re-write the search query, so that content is indexed and available as search results to users in role(s) that have permissions to view it, but not displayed to other roles. ******************************************************************** PREREQUISITES: Search module (Drupal core). ******************************************************************** INSTALLATION: Note: It is assumed that you have Drupal up and running. Be sure to check the Drupal web site if you need assistance. If you run into problems, you should always read the INSTALL.txt that comes with the Drupal package and read the online documentation. 1. Place the entire module directory into your Drupal directory: sites/all/modules/ 2. Enable the module modules by navigating to: administer > build > modules Click the 'Save configuration' button at the bottom to commit your changes. ******************************************************************** USAGE: On the configuration form of each each content type set the role(s) that can search for nodes of that content type. ******************************************************************** TO DO Write tests ******************************************************************** ACKNOWLEDGEMENT Developed by Robert Castelo for Code Positive Initial development sponsored by Greenpeace UK Drupal 6 update by: Hans Nilsson (Blackdog) Daniel F. Kudwien (Sun)