Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_comment_publish modules/comment/comment.api.php Act on a comment that is being saved in a published state.
hook_comment_unpublish modules/comment/comment.api.php Act on a comment that is being saved in an unpublished state.
hook_comment_update modules/comment/comment.api.php The comment is being updated.
hook_comment_view 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 modules/comment/comment.api.php The comment was built; the module may modify the structured content.
hook_contextual_links_view_alter modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
hook_countries_alter modules/system/system.api.php Alter the default country list.
hook_cron modules/system/system.api.php Perform periodic actions.
hook_cron_queue_info modules/system/system.api.php Declare queues holding items that need to be run periodically.
hook_cron_queue_info_alter modules/system/system.api.php Alter cron queue information before cron runs.
hook_css_alter modules/system/system.api.php Alter CSS files before they are output on the page.
hook_custom_theme modules/system/system.api.php Return the machine-readable name of the theme to use for the current page.
hook_dashboard_regions modules/dashboard/dashboard.api.php Add regions to the dashboard.
hook_dashboard_regions_alter modules/dashboard/dashboard.api.php Alter dashboard regions provided by modules.
hook_date_formats modules/system/system.api.php Define additional date formats.
hook_date_formats_alter modules/system/system.api.php Alter date formats declared by another module.
hook_date_format_types modules/system/system.api.php Define additional date types.
hook_date_format_types_alter modules/system/system.api.php Modify existing date types.
hook_delete modules/node/node.api.php Respond to node deletion.
hook_disable modules/system/system.api.php Perform necessary actions before module is disabled.
hook_drupal_goto_alter modules/system/system.api.php Change the page the user is sent to by drupal_goto().
hook_element_info modules/system/system.api.php Allows modules to declare their own Form API element types and specify their default values.
hook_element_info_alter modules/system/system.api.php Alter the element type information returned from modules.
hook_enable modules/system/system.api.php Perform necessary actions after module is enabled.
hook_entity_delete modules/system/system.api.php Act on entities when deleted.
hook_entity_info modules/system/system.api.php Inform the base system and the Field API about one or more entity types.
hook_entity_info_alter modules/system/system.api.php Alter the entity info.
hook_entity_insert modules/system/system.api.php Act on entities when inserted.
hook_entity_load modules/system/system.api.php Act on entities when loaded.
hook_entity_prepare_view modules/system/system.api.php Act on entities as they are being prepared for view.
hook_entity_presave modules/system/system.api.php Act on an entity before it is about to be created or updated.
hook_entity_query_alter modules/system/system.api.php Alter or execute an EntityFieldQuery.
hook_entity_update modules/system/system.api.php Act on entities when updated.
hook_entity_view modules/system/system.api.php Act on entities being assembled before rendering.
hook_entity_view_alter modules/system/system.api.php Alter the results of ENTITY_view().
hook_entity_view_mode_alter modules/system/system.api.php Change the view mode of an entity that is being displayed.
hook_exit modules/system/system.api.php Perform cleanup tasks. 1
hook_field_access modules/field/field.api.php Determine whether the user has access to a given field.
hook_field_attach_create_bundle modules/field/field.api.php Act on field_attach_create_bundle().
hook_field_attach_delete modules/field/field.api.php Act on field_attach_delete().
hook_field_attach_delete_bundle modules/field/field.api.php Act on field_attach_delete_bundle.
hook_field_attach_delete_revision modules/field/field.api.php Act on field_attach_delete_revision().
hook_field_attach_form modules/field/field.api.php Act on field_attach_form().
hook_field_attach_insert modules/field/field.api.php Act on field_attach_insert().
hook_field_attach_load modules/field/field.api.php Act on field_attach_load().
hook_field_attach_prepare_translation_alter modules/field/field.api.php Perform alterations on field_attach_prepare_translation().
hook_field_attach_preprocess_alter modules/field/field.api.php Alter field_attach_preprocess() variables.
hook_field_attach_presave modules/field/field.api.php Act on field_attach_presave().
hook_field_attach_purge modules/field/field.api.php Act on field_purge_data().
hook_field_attach_rename_bundle modules/field/field.api.php Act on field_attach_rename_bundle().

Other projects


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