Search for hook_

  1. Search 9.5.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_block_view function modules/block/block.api.php Return a rendered or renderable view of a block.
hook_block_view_alter function modules/block/block.api.php Perform alterations to the content of a block.
hook_block_view_MODULE_DELTA_alter function modules/block/block.api.php Perform alterations to a specific block.
hook_boot function modules/system/system.api.php Perform setup tasks for all page requests.
hook_comment_delete function modules/comment/comment.api.php The comment is being deleted by the moderator.
hook_comment_insert function modules/comment/comment.api.php The comment is being inserted.
hook_comment_load function modules/comment/comment.api.php Comments are being loaded from the database.
hook_comment_presave function modules/comment/comment.api.php The comment passed validation and is about to be saved.
hook_comment_publish function modules/comment/comment.api.php Act on a comment that is being saved in a published state.
hook_comment_unpublish function modules/comment/comment.api.php Act on a comment that is being saved in an unpublished state.
hook_comment_update function modules/comment/comment.api.php The comment is being updated.
hook_comment_view function modules/comment/comment.api.php The comment is being viewed. This hook can be used to add additional data to the comment before theming.
hook_comment_view_alter function modules/comment/comment.api.php The comment was built; the module may modify the structured content.
hook_contextual_links_view_alter function modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
hook_countries_alter function modules/system/system.api.php Alter the default country list.
hook_cron function modules/system/system.api.php Perform periodic actions.
hook_cron_queue_info function modules/system/system.api.php Declare queues holding items that need to be run periodically.
hook_cron_queue_info_alter function modules/system/system.api.php Alter cron queue information before cron runs.
hook_css_alter function modules/system/system.api.php Alter CSS files before they are output on the page.
hook_custom_theme function modules/system/system.api.php Return the machine-readable name of the theme to use for the current page.
hook_dashboard_regions function modules/dashboard/dashboard.api.php Add regions to the dashboard.
hook_dashboard_regions_alter function modules/dashboard/dashboard.api.php Alter dashboard regions provided by modules.
hook_date_formats function modules/system/system.api.php Define additional date formats.
hook_date_formats_alter function modules/system/system.api.php Alter date formats declared by another module.
hook_date_format_types function modules/system/system.api.php Define additional date types.
hook_date_format_types_alter function modules/system/system.api.php Modify existing date types.
hook_delete function modules/node/node.api.php Respond to node deletion.
hook_disable function modules/system/system.api.php Perform necessary actions before module is disabled.
hook_drupal_goto_alter function modules/system/system.api.php Change the page the user is sent to by drupal_goto().
hook_element_info function modules/system/system.api.php Allows modules to declare their own Form API element types and specify their
default values.
hook_element_info_alter function modules/system/system.api.php Alter the element type information returned from modules.
hook_enable function modules/system/system.api.php Perform necessary actions after module is enabled.
hook_entity_delete function modules/system/system.api.php Act on entities when deleted.
hook_entity_info function modules/system/system.api.php Inform the base system and the Field API about one or more entity types.
hook_entity_info_alter function modules/system/system.api.php Alter the entity info.
hook_entity_insert function modules/system/system.api.php Act on entities when inserted.
hook_entity_load function modules/system/system.api.php Act on entities when loaded.
hook_entity_prepare_view function modules/system/system.api.php Act on entities as they are being prepared for view.
hook_entity_presave function modules/system/system.api.php Act on an entity before it is about to be created or updated.
hook_entity_query_alter function modules/system/system.api.php Alter or execute an EntityFieldQuery.
hook_entity_update function modules/system/system.api.php Act on entities when updated.
hook_entity_view function modules/system/system.api.php Act on entities being assembled before rendering.
hook_entity_view_alter function modules/system/system.api.php Alter the results of ENTITY_view().
hook_entity_view_mode_alter function modules/system/system.api.php Change the view mode of an entity that is being displayed.
hook_exit function modules/system/system.api.php Perform cleanup tasks.
hook_field_access function modules/field/field.api.php Determine whether the user has access to a given field.
hook_field_attach_create_bundle function modules/field/field.api.php Act on field_attach_create_bundle().
hook_field_attach_delete function modules/field/field.api.php Act on field_attach_delete().
hook_field_attach_delete_bundle function modules/field/field.api.php Act on field_attach_delete_bundle.
hook_field_attach_delete_revision function modules/field/field.api.php Act on field_attach_delete_revision().

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