-
Book Overview & Buying
-
Table Of Contents
Drupal 7 First Look
Similar to other Drupal APIs, the Search API has been modified in Drupal 7 to make it easier for developers to use and interact with. Several methods have also been modified for consistency with other Drupal APIs.
Several new hooks have been added to the API to allow your modules to provide additional information to the search system, allow you to modify the search process, and allow you to modify how the results are returned to the user.
hook_search_access()
This hook allows you to define which permissions are necessary to access your custom search defined within hook_search_info. Then you can define which roles have access to the permission.
hook_search_admin()
With this hook, you can add additional elements to the administration form for the Search settings. You can then use these new properties during custom searches. The return value of this hook is an array of form elements. For more information, see: http://api.drupal.org...
Change the font size
Change margin width
Change background colour