Search for hook_

  1. Search 7.x for hook_
  2. Search 8.9.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_extension function core/lib/Drupal/Core/Render/theme.api.php Declare a template file extension to be used with a theme engine.
hook_field_formatter_info_alter function core/modules/field/field.api.php Perform alterations on Field API formatter types.
hook_field_formatter_settings_summary_alter function core/modules/field_ui/field_ui.api.php Alters the field formatter settings summary.
hook_field_formatter_third_party_settings_form function core/modules/field_ui/field_ui.api.php Allow modules to add settings to field formatters provided by other modules.
hook_field_info_alter function core/modules/field/field.api.php Perform alterations on Field API field types.
hook_field_info_max_weight function core/modules/field/field.api.php Returns the maximum weight for the entity components handled by the module.
hook_field_purge_field function core/modules/field/field.api.php Acts when a field is being purged.
hook_field_purge_field_storage function core/modules/field/field.api.php Acts when a field storage definition is being purged.
hook_field_storage_config_update_forbid function core/modules/field/field.api.php Forbid a field storage update from occurring.
hook_field_ui_preconfigured_options_alter function core/modules/field/field.api.php Perform alterations on preconfigured field options.
hook_field_views_data function core/modules/views/views.api.php Override the default Views data for a Field API field.
hook_field_views_data_alter function core/modules/views/views.api.php Alter the Views data for a single Field API field.
hook_field_views_data_views_data_alter function core/modules/views/views.api.php Alter the Views data on a per field basis.
hook_field_widget_complete_form_alter function core/modules/field/field.api.php Alter the complete form for field widgets provided by other modules.
hook_field_widget_complete_WIDGET_TYPE_form_alter function core/modules/field/field.api.php Alter the complete form for a specific widget provided by other modules.
hook_field_widget_form_alter function core/modules/field/field.api.php Alter forms for field widgets provided by other modules.
hook_field_widget_info_alter function core/modules/field/field.api.php Perform alterations on Field API widget types.
hook_field_widget_multivalue_form_alter function core/modules/field/field.api.php Alter forms for multi-value field widgets provided by other modules.
hook_field_widget_multivalue_WIDGET_TYPE_form_alter function core/modules/field/field.api.php Alter multi-value widget forms for a widget provided by another module.
hook_field_widget_settings_summary_alter function core/modules/field_ui/field_ui.api.php Alters the field widget settings summary.
hook_field_widget_single_element_form_alter function core/modules/field/field.api.php Alter forms for field widgets provided by other modules.
hook_field_widget_single_element_WIDGET_TYPE_form_alter function core/modules/field/field.api.php Alter widget forms for a specific widget provided by another module.
hook_field_widget_third_party_settings_form function core/modules/field_ui/field_ui.api.php Allow modules to add settings to field widgets provided by other modules.
hook_field_widget_WIDGET_TYPE_form_alter function core/modules/field/field.api.php Alter widget forms for a specific widget provided by another module.
hook_filetransfer_info function core/lib/Drupal/Core/File/file.api.php Register information about FileTransfer classes provided by a module.
hook_filetransfer_info_alter function core/lib/Drupal/Core/File/file.api.php Alter the FileTransfer class registry.
hook_file_copy function core/modules/file/file.api.php Respond to a file that has been copied.
hook_file_download function core/lib/Drupal/Core/File/file.api.php Control access to private file downloads and specify HTTP headers.
hook_file_mimetype_mapping_alter function core/lib/Drupal/Core/File/file.api.php Alter MIME type mappings used to determine MIME type from a file extension.
hook_file_move function core/modules/file/file.api.php Respond to a file that has been moved.
hook_file_url_alter function core/lib/Drupal/Core/File/file.api.php Alter the URL to a file.
hook_file_validate function core/modules/file/file.api.php Check that files meet a given criteria.
hook_filter_format_disable function core/modules/filter/filter.api.php Perform actions when a text format has been disabled.
hook_filter_info_alter function core/modules/filter/filter.api.php Perform alterations on filter definitions.
hook_filter_secure_image_alter function core/modules/filter/filter.api.php Alters images with an invalid source.
hook_form_alter function core/lib/Drupal/Core/Form/form.api.php Perform alterations before a form is rendered.
hook_form_BASE_FORM_ID_alter function core/lib/Drupal/Core/Form/form.api.php Provide a form-specific alteration for shared ('base') forms.
hook_form_FORM_ID_alter function core/lib/Drupal/Core/Form/form.api.php Provide a form-specific alteration instead of the global hook_form_alter().
hook_form_system_theme_settings_alter function core/lib/Drupal/Core/Render/theme.api.php Allow themes to alter the theme-specific settings form.
hook_hal_relation_uri_alter function core/modules/hal/hal.api.php Alter the HAL relation URI.
hook_hal_type_uri_alter function core/modules/hal/hal.api.php Alter the HAL type URI.
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.

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