Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7fef2608
Commit
7fef2608
authored
Jan 13, 2012
by
catch
Browse files
Issue
#1398806
by kiamlaluno: Fixed The purpose of hook_search_page() is explained twice.
parent
bbdd7057
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/search/search.api.php
View file @
7fef2608
...
...
@@ -22,13 +22,11 @@
* 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 also
* alter the display of your module's search results by implementing
* hook_search_page(). You can use hook_form_FORM_ID_alter(), with
* FORM_ID set to 'search', 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.
* 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
* Array with optional keys:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment