Search for hook_

  1. Search 7.x for hook_
  2. Search 9.5.x for hook_
  3. Search 8.9.x for hook_
  4. Search 11.x for hook_
  5. Other projects
Title Object type File name Summary
hook_options_list_alter function core/modules/options/options.api.php Alters the list of options to be displayed for a field.
hook_page_attachments function core/lib/Drupal/Core/Render/theme.api.php Add attachments (typically assets) to a page before it is rendered.
hook_page_attachments_alter function core/lib/Drupal/Core/Render/theme.api.php Alter attachments (typically assets) to a page before it is rendered.
hook_page_bottom function core/lib/Drupal/Core/Render/theme.api.php Add a renderable array to the bottom of the page.
hook_page_top function core/lib/Drupal/Core/Render/theme.api.php Add a renderable array to the top of the page.
hook_plugin_filter_TYPE_alter function core/lib/Drupal/Core/Plugin/plugin.api.php Alter the filtering of plugin definitions for a specific plugin type.
hook_plugin_filter_TYPE__CONSUMER_alter function core/lib/Drupal/Core/Plugin/plugin.api.php Alter the filtering of plugin definitions for a specific type and consumer.
hook_post_update_NAME function core/lib/Drupal/Core/Extension/module.api.php Executes an update which is intended to update data, like entities.
hook_preprocess function core/lib/Drupal/Core/Render/theme.api.php Preprocess theme variables for templates.
hook_preprocess_HOOK function core/lib/Drupal/Core/Render/theme.api.php Preprocess theme variables for a specific theme hook.
hook_query_alter function core/lib/Drupal/Core/Database/database.api.php Perform alterations to a structured query.
hook_query_TAG_alter function core/lib/Drupal/Core/Database/database.api.php Perform alterations to a structured query for a given tag.
hook_queue_info_alter function core/core.api.php Alter cron queue information before cron runs.
hook_ranking function core/modules/node/node.api.php Provide additional methods of scoring for core search results for nodes.
hook_rebuild function core/core.api.php Rebuild data based upon refreshed caches.
hook_removed_post_updates function core/lib/Drupal/Core/Extension/module.api.php Return an array of removed hook_post_update_NAME() function names.
hook_render_template function core/lib/Drupal/Core/Render/theme.api.php Render a template using the theme engine.
hook_requirements function core/lib/Drupal/Core/Extension/module.api.php Check installation requirements and do status reporting.
hook_requirements_alter function core/lib/Drupal/Core/Extension/module.api.php Alters requirements data.
hook_rest_resource_alter function core/modules/rest/rest.api.php Alter the resource plugin definitions.
hook_schema function core/lib/Drupal/Core/Database/database.api.php Define the current version of the database schema.
hook_search_plugin_alter function core/modules/search/search.api.php Alter search plugin definitions.
hook_search_preprocess function core/modules/search/search.api.php Preprocess text for search.
hook_shortcut_default_set function core/modules/shortcut/shortcut.api.php Return the name of a default shortcut set for the provided user account.
hook_system_breadcrumb_alter function core/lib/Drupal/Core/Menu/menu.api.php Perform alterations to the breadcrumb built by the BreadcrumbManager.
hook_system_info_alter function core/lib/Drupal/Core/Extension/module.api.php Alter the information parsed from module and theme .info.yml files.
hook_system_themes_page_alter function core/modules/system/system.api.php Alters theme operation links.
hook_template_preprocess_default_variables_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the default, hook-independent variables for all templates.
hook_theme function core/lib/Drupal/Core/Render/theme.api.php Register a module or theme's theme implementations.
hook_themes_installed function core/lib/Drupal/Core/Render/theme.api.php Respond to themes being installed.
hook_themes_uninstalled function core/lib/Drupal/Core/Render/theme.api.php Respond to themes being uninstalled.
hook_theme_registry_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the theme registry information returned from hook_theme().
hook_theme_suggestions_alter function core/lib/Drupal/Core/Render/theme.api.php Alters named suggestions for all theme hooks.
hook_theme_suggestions_HOOK function core/lib/Drupal/Core/Render/theme.api.php Provides alternate named suggestions for a specific theme hook.
hook_theme_suggestions_HOOK_alter function core/lib/Drupal/Core/Render/theme.api.php Alters named suggestions for a specific theme hook.
hook_tokens function core/lib/Drupal/Core/Utility/token.api.php Provide replacement values for placeholder tokens.
hook_tokens_alter function core/lib/Drupal/Core/Utility/token.api.php Alter replacement values for placeholder tokens.
hook_token_info function core/lib/Drupal/Core/Utility/token.api.php Provide information about available placeholder tokens and token types.
hook_token_info_alter function core/lib/Drupal/Core/Utility/token.api.php Alter the metadata about available placeholder tokens and token types.
hook_toolbar function core/modules/toolbar/toolbar.api.php Add items to the toolbar menu.
hook_toolbar_alter function core/modules/toolbar/toolbar.api.php Alter the toolbar menu after hook_toolbar() is invoked.
hook_tour_tips_alter function core/modules/tour/tour.api.php Allow modules to alter tour items before render.
hook_tour_tips_info_alter function core/modules/tour/tour.api.php Allow modules to alter tip plugin definitions.
hook_transliteration_overrides_alter function core/lib/Drupal/Core/Language/language.api.php Provide language-specific overrides for transliteration.
hook_uninstall function core/lib/Drupal/Core/Extension/module.api.php Remove any information that the module sets.
hook_updater_info function core/lib/Drupal/Core/Extension/module.api.php Provide information on Updaters (classes that can update Drupal).
hook_updater_info_alter function core/lib/Drupal/Core/Extension/module.api.php Alter the Updater information array.
hook_update_dependencies function core/lib/Drupal/Core/Extension/module.api.php Return an array of information about module update dependencies.
hook_update_last_removed function core/lib/Drupal/Core/Extension/module.api.php Return a number which is no longer available as hook_update_N().
hook_update_N function core/lib/Drupal/Core/Extension/module.api.php Perform a single update between minor versions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.