function hook_search_access

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 search.api.php hook_search_access()
cle7 search.api.php hook_search_access()
elmsmedia7 search.api.php hook_search_access()
icor7 search.api.php hook_search_access()
meedjum_blog7 search.api.php hook_search_access()
mooc7 search.api.php hook_search_access()

Define access to a custom search routine.

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

Related topics

3 functions implement hook_search_access()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

file_entity_search_access in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_search_access().
node_search_access in modules/node/node.module
Implements hook_search_access().
user_search_access in modules/user/user.module
Implements hook_search_access().
1 invocation of hook_search_access()
_search_menu_access in modules/search/search.module
Access callback for search tabs.

File

modules/search/search.api.php, line 56
Hooks provided by the Search module.

Code

function hook_search_access() {
  return user_access('access content');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.