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_display_variant_plugin_alter function core/core.api.php Alter display variant plugin definitions.
hook_editor_info_alter function core/modules/editor/editor.api.php Performs alterations on text editor definitions.
hook_editor_js_settings_alter function core/modules/editor/editor.api.php Modifies JavaScript settings that are added for text editors.
hook_editor_xss_filter_alter function core/modules/editor/editor.api.php Modifies the text editor XSS filter that will used for the given text format.
hook_element_info_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the element type information returned from modules.
hook_element_plugin_alter function core/lib/Drupal/Core/Render/theme.api.php Alter Element plugin definitions.
hook_entity_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity operation access.
hook_entity_base_field_info function core/lib/Drupal/Core/Entity/entity.api.php Provides custom base field definitions for a content entity type.
hook_entity_base_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter base field definitions for a content entity type.
hook_entity_build_defaults_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter entity renderable values before cache checking in drupal_render().
hook_entity_bundle_create function core/lib/Drupal/Core/Entity/entity.api.php Act on entity_bundle_create().
hook_entity_bundle_delete function core/lib/Drupal/Core/Entity/entity.api.php Act on entity_bundle_delete().
hook_entity_bundle_field_info function core/lib/Drupal/Core/Entity/entity.api.php Provides field definitions for a specific bundle within an entity type.
hook_entity_bundle_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter bundle field definitions.
hook_entity_bundle_info function core/lib/Drupal/Core/Entity/entity.api.php Describe the bundles for entity types.
hook_entity_bundle_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the bundles for entity types.
hook_entity_create function core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity.
hook_entity_create_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity create access.
hook_entity_delete function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity deletion.
hook_entity_display_build_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the render array generated by an EntityDisplay for an entity.
hook_entity_extra_field_info function core/lib/Drupal/Core/Entity/entity.api.php Exposes "pseudo-field" components on content entities.
hook_entity_extra_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter "pseudo-field" components on content entities.
hook_entity_field_access function core/lib/Drupal/Core/Entity/entity.api.php Control access to fields.
hook_entity_field_access_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the default access behavior for a given field.
hook_entity_field_storage_info function core/lib/Drupal/Core/Entity/entity.api.php Provides field storage definitions for a content entity type.
hook_entity_field_storage_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter field storage definitions for a content entity type.
hook_entity_field_values_init function core/lib/Drupal/Core/Entity/entity.api.php Acts when initializing a fieldable entity object.
hook_entity_form_display_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the settings used for displaying an entity form.
hook_entity_insert function core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity.
hook_entity_load function core/lib/Drupal/Core/Entity/entity.api.php Act on entities when loaded.
hook_entity_operation function core/lib/Drupal/Core/Entity/entity.api.php Declares entity operations.
hook_entity_operation_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter entity operations.
hook_entity_predelete function core/lib/Drupal/Core/Entity/entity.api.php Act before entity deletion.
hook_entity_preload function core/lib/Drupal/Core/Entity/entity.api.php Act on an array of entity IDs before they are loaded.
hook_entity_prepare_form function core/lib/Drupal/Core/Entity/entity.api.php Acts on an entity object about to be shown on an entity form.
hook_entity_prepare_view function core/lib/Drupal/Core/Entity/entity.api.php Act on entities as they are being prepared for view.
hook_entity_presave function core/lib/Drupal/Core/Entity/entity.api.php Act on an entity before it is created or updated.
hook_entity_revision_create function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision creation.
hook_entity_revision_delete function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision deletion.
hook_entity_storage_load function core/lib/Drupal/Core/Entity/entity.api.php Act on content entities when loaded from the storage.
hook_entity_translation_create function core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity translation.
hook_entity_translation_delete function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity translation deletion.
hook_entity_translation_insert function core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity translation.
hook_ENTITY_TYPE_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity operation access for a specific entity type.
hook_entity_type_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the entity type definitions.
hook_entity_type_build function core/lib/Drupal/Core/Entity/entity.api.php Add to entity type definitions.
hook_ENTITY_TYPE_build_defaults_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter entity renderable values before cache checking in drupal_render().
hook_ENTITY_TYPE_create function core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity of a specific type.
hook_ENTITY_TYPE_create_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity create access for a specific entity type.
hook_ENTITY_TYPE_delete function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity deletion of a particular type.

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