hook_search_access

Versions
7
hook_search_access()

Define access to a custom search routine.

This hook allows a module to deny access to a user to a search tab.

Related topics

Code

modules/search/search.api.php, line 52

<?php
function hook_search_access() {
  return user_access('access content');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.