hook_search_access

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_search_access()

Define access to a custom search routine.

This hook allows a module to define permissions for a search tab.

Related topics

Code

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

<?php
function hook_search_access() {
  return user_access('access content');
}
?>