function hook_search_info


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/
cis7 search.api.php hook_search_info()
cle7 search.api.php hook_search_info()
elmsmedia7 search.api.php hook_search_info()
icor7 search.api.php hook_search_info()
meedjum_blog7 search.api.php hook_search_info()
mooc7 search.api.php hook_search_info()

Define a custom search type.

This hook allows a module to tell search.module that it wishes to perform searches on content it defines (custom node types, users, or comments for example) when a site search is performed.

In order for the search to do anything, your module must also implement hook_search_execute(), which is called when someone requests a search on your module's type of content. If you want to have your content indexed in the standard search index, your module should also implement hook_update_index(). If your search type has settings, you can implement hook_search_admin() to add them to the search settings page. You can use hook_form_FORM_ID_alter(), with FORM_ID set to 'search_form', to add fields to the search form (see node_form_search_form_alter() for an example). You can use hook_search_access() to limit access to searching, and hook_search_page() to override how search results are displayed.

Return value

Array with optional keys:

  • title: Title for the tab on the search page for this module. Defaults to the module name if not given.
  • path: Path component after 'search/' for searching with this module. Defaults to the module name if not given.
  • conditions_callback: An implementation of callback_search_conditions().

Related topics

6 functions implement hook_search_info()

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

advanced_help_search_info in sites/all/modules/ulmus/advanced_help/advanced_help.module
Implements hook_search_info().
ds_search_search_info in sites/all/modules/ulmus/ds/modules/ds_search/ds_search.module
Implements hook_search_info().
file_entity_search_info in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_search_info().
node_search_info in modules/node/node.module
Implements hook_search_info().
search_extra_type_search_info in modules/search/tests/search_extra_type.module
Implements hook_search_info().

... See full list

2 invocations of hook_search_info()
ds_search_settings in sites/all/modules/ulmus/ds/modules/ds_search/includes/
Menu callback: Display Suite search settings.
search_get_info in modules/search/search.module
Returns information about available search modules.


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


function hook_search_info() {
  return array(
    'title' => 'Content',
    'path' => 'node',
    'conditions_callback' => 'callback_search_conditions',



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.