Search for hook_

  1. Search 7.x for hook_
  2. Search 9.5.x for hook_
  3. Search 10.3.x for hook_
  4. Search 11.x for hook_
  5. Other projects
Title Object type File name Summary
hook_help function core/modules/help/help.api.php Provide online user help.
hook_help_section_info_alter function core/modules/help/help.api.php Perform alterations on help page section plugin definitions.
hook_help_topics_info_alter function core/modules/help_topics/help_topics.api.php Perform alterations on help topic definitions.
hook_hook_info function core/lib/Drupal/Core/Extension/module.api.php Defines one or more hooks that are exposed by a module.
hook_image_effect_info_alter function core/modules/image/image.api.php Alter the information provided in \Drupal\image\Annotation\ImageEffect.
hook_image_style_flush function core/modules/image/image.api.php Respond to image style flushing.
hook_include.inc file core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc Include file for test module.
hook_install function core/lib/Drupal/Core/Extension/module.api.php Perform setup tasks when the module is installed.
hook_install_tasks function core/lib/Drupal/Core/Extension/module.api.php Return an array of tasks to be performed by an installation profile.
hook_install_tasks_alter function core/lib/Drupal/Core/Extension/module.api.php Alter the full list of installation tasks.
hook_jsonapi_entity_field_filter_access function core/modules/jsonapi/jsonapi.api.php Restricts filtering access to the given field.
hook_jsonapi_entity_filter_access function core/modules/jsonapi/jsonapi.api.php Controls access when filtering by entity data via JSON:API.
hook_jsonapi_ENTITY_TYPE_filter_access function core/modules/jsonapi/jsonapi.api.php Controls access to filtering by entity data via JSON:API.
hook_js_alter function core/lib/Drupal/Core/Render/theme.api.php Perform necessary alterations to the JavaScript before it is presented on
the page.
hook_js_settings_alter function core/lib/Drupal/Core/Render/theme.api.php Perform necessary alterations to the JavaScript settings (drupalSettings).
hook_js_settings_build function core/lib/Drupal/Core/Render/theme.api.php Modify the JavaScript settings (drupalSettings).
hook_language_fallback_candidates_alter function core/modules/language/language.api.php Allow modules to alter the language fallback candidates.
hook_language_fallback_candidates_OPERATION_alter function core/modules/language/language.api.php Allow modules to alter the fallback candidates for specific operations.
hook_language_negotiation_info_alter function core/modules/language/language.api.php Perform alterations on language negotiation methods.
hook_language_switch_links_alter function core/lib/Drupal/Core/Language/language.api.php Perform alterations on language switcher links.
hook_language_types_info function core/modules/language/language.api.php Define language types.
hook_language_types_info_alter function core/modules/language/language.api.php Perform alterations on language types.
hook_layout_alter function core/core.api.php Allow modules to alter layout plugin definitions.
hook_library_info_alter function core/lib/Drupal/Core/Render/theme.api.php Alter libraries provided by an extension.
hook_library_info_build function core/lib/Drupal/Core/Render/theme.api.php Add dynamic library definitions.
hook_link_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter the parameters for links.
hook_locale_translation_projects_alter function core/modules/locale/locale.api.php Alter the list of projects to be updated by locale's interface translation.
hook_local_tasks_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter local tasks plugins.
hook_mail function core/core.api.php Prepares a message based on parameters;
hook_mail_alter function core/core.api.php Alter an email message created with MailManagerInterface->mail().
hook_mail_backend_info_alter function core/core.api.php Alter the list of mail backend plugin definitions.
hook_media_source_info_alter function core/modules/media/media.api.php Alters the information provided in \Drupal\media\Annotation\MediaSource.
hook_menu_links_discovered_alter function core/lib/Drupal/Core/Menu/menu.api.php Alters all the menu links discovered by the menu link plugin manager.
hook_menu_local_actions_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter local actions plugins.
hook_menu_local_tasks_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter local tasks displayed on the page before they are rendered.
hook_migrate_MIGRATION_ID_prepare_row function core/modules/migrate/migrate.api.php Allows adding data to a row for a migration with the specified ID.
hook_migrate_prepare_row function core/modules/migrate/migrate.api.php Allows adding data to a row before processing it.
hook_migration_plugins_alter function core/modules/migrate/migrate.api.php Allows altering the list of discovered migration plugins.
hook_modules_installed function core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions after modules are installed.
hook_modules_uninstalled function core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions after modules are uninstalled.
hook_module_implements_alter function core/lib/Drupal/Core/Extension/module.api.php Alter the registry of modules implementing a hook.
hook_module_preinstall function core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions before a module is installed.
hook_module_preuninstall function core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions before a module is uninstalled.
hook_node_access_records function core/modules/node/node.api.php Set permissions for a node to be written to the database.
hook_node_access_records_alter function core/modules/node/node.api.php Alter permissions for a node before it is written to the database.
hook_node_grants function core/modules/node/node.api.php Inform the node access system what permissions the user has.
hook_node_grants_alter function core/modules/node/node.api.php Alter user access rules when trying to view, edit or delete a node.
hook_node_links_alter function core/modules/node/node.api.php Alter the links of a node.
hook_node_search_result function core/modules/node/node.api.php Act on a node being displayed as a search result.
hook_node_update_index function core/modules/node/node.api.php Act on a node being indexed for searching.

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