Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_runtime_requirements core/lib/Drupal/Core/Extension/module.api.php Check runtime requirements and do status reporting.
hook_runtime_requirements_alter core/lib/Drupal/Core/Extension/module.api.php Alters runtime requirements data.
hook_schema core/lib/Drupal/Core/Database/database.api.php Define the current version of the database schema.
hook_search_plugin_alter core/modules/search/search.api.php Alter search plugin definitions.
hook_search_preprocess core/modules/search/search.api.php Preprocess text for search.
hook_shortcut_default_set core/modules/shortcut/shortcut.api.php Return the name of a default shortcut set for the provided user account.
hook_system_breadcrumb_alter core/lib/Drupal/Core/Menu/menu.api.php Perform alterations to the breadcrumb built by the BreadcrumbManager.
hook_system_info_alter core/lib/Drupal/Core/Extension/module.api.php Alter the information parsed from module and theme .info.yml files.
hook_system_themes_page_alter core/modules/system/system.api.php Alters theme operation links.
hook_template_preprocess_default_variables_alter core/lib/Drupal/Core/Render/theme.api.php Alter the default variables for all templates.
hook_theme core/lib/Drupal/Core/Render/theme.api.php Register a module or theme's theme implementations.
hook_themes_installed core/lib/Drupal/Core/Render/theme.api.php Respond to themes being installed.
hook_themes_uninstalled core/lib/Drupal/Core/Render/theme.api.php Respond to themes being uninstalled.
hook_theme_registry_alter core/lib/Drupal/Core/Render/theme.api.php Alter the theme registry information returned from hook_theme().
hook_theme_suggestions_alter core/lib/Drupal/Core/Render/theme.api.php Alters named suggestions for all theme hooks.
hook_theme_suggestions_HOOK core/lib/Drupal/Core/Render/theme.api.php Provides alternate named suggestions for a specific theme hook.
hook_theme_suggestions_HOOK_alter core/lib/Drupal/Core/Render/theme.api.php Alters named suggestions for a specific theme hook.
hook_tokens core/lib/Drupal/Core/Utility/token.api.php Provide replacement values for placeholder tokens.
hook_tokens_alter core/lib/Drupal/Core/Utility/token.api.php Alter replacement values for placeholder tokens.
hook_token_info core/lib/Drupal/Core/Utility/token.api.php Provide information about available placeholder tokens and token types.
hook_token_info_alter core/lib/Drupal/Core/Utility/token.api.php Alter the metadata about available placeholder tokens and token types.
hook_toolbar core/modules/toolbar/toolbar.api.php Add items to the toolbar menu.
hook_toolbar_alter core/modules/toolbar/toolbar.api.php Alter the toolbar menu after hook_toolbar() is invoked.
hook_transliteration_overrides_alter core/lib/Drupal/Core/Language/language.api.php Provide language-specific overrides for transliteration.
hook_uninstall core/lib/Drupal/Core/Extension/module.api.php Remove any information that the module sets.
hook_update_dependencies core/lib/Drupal/Core/Extension/module.api.php Return an array of information about module update dependencies.
hook_update_last_removed core/lib/Drupal/Core/Extension/module.api.php Return a number which is no longer available as hook_update_N().
hook_update_N core/lib/Drupal/Core/Extension/module.api.php Perform a single update between minor versions.
hook_update_projects_alter core/modules/update/update.api.php Alter the list of projects before fetching data and comparing versions.
hook_update_requirements core/lib/Drupal/Core/Extension/module.api.php Check requirements before running database updates.
hook_update_requirements_alter core/lib/Drupal/Core/Extension/module.api.php Alters update requirements data.
hook_update_status_alter core/modules/update/update.api.php Alter the information about available updates for projects.
hook_user_cancel core/modules/user/user.api.php Act on user account cancellations.
hook_user_cancel_methods_alter core/modules/user/user.api.php Modify account cancellation methods.
hook_user_format_name_alter core/modules/user/user.api.php Alter the username that is displayed for a user.
hook_user_login core/modules/user/user.api.php The user just logged in.
hook_user_logout core/modules/user/user.api.php The user just logged out.
hook_validation_constraint_alter core/core.api.php Alter validation constraint plugin definitions.
hook_views_analyze core/modules/views/views.api.php Analyze a view to provide warnings about its configuration.
hook_views_data core/modules/views/views.api.php Describe data tables and fields (or the equivalent) to Views.
hook_views_data_alter core/modules/views/views.api.php Alter the table and field information from hook_views_data().
hook_views_form_substitutions core/modules/views/views.api.php Replace special strings when processing a view with form elements.
hook_views_invalidate_cache core/modules/views/views.api.php Allow modules to respond to the invalidation of the Views cache.
hook_views_plugins_access_alter core/modules/views/views.api.php Modify the list of available views access plugins.
hook_views_plugins_area_alter core/modules/views/views.api.php Modify the list of available views area handler plugins.
hook_views_plugins_argument_alter core/modules/views/views.api.php Modify the list of available views argument handler plugins.
hook_views_plugins_argument_default_alter core/modules/views/views.api.php Modify the list of available views default argument plugins.
hook_views_plugins_argument_validator_alter core/modules/views/views.api.php Modify the list of available views argument validation plugins.
hook_views_plugins_cache_alter core/modules/views/views.api.php Modify the list of available views cache plugins.
hook_views_plugins_display_alter core/modules/views/views.api.php Modify the list of available views display plugins.

Other projects


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