Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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().
hook_field_attach_submit modules/field/field.api.php Act on field_attach_submit().
hook_field_attach_update modules/field/field.api.php Act on field_attach_update().
hook_field_attach_validate modules/field/field.api.php Act on field_attach_validate().
hook_field_attach_view_alter modules/field/field.api.php Perform alterations on field_attach_view() or field_view_field().
hook_field_available_languages_alter modules/field/field.api.php Alter field_available_languages() values.
hook_field_create_field modules/field/field.api.php Act on a field being created.
hook_field_create_instance modules/field/field.api.php Act on a field instance being created.
hook_field_delete modules/field/field.api.php Define custom delete behavior for this module's field data.
hook_field_delete_field modules/field/field.api.php Act on a field being deleted.
hook_field_delete_instance modules/field/field.api.php Act on a field instance being deleted.
hook_field_delete_revision modules/field/field.api.php Define custom revision delete behavior for this module's field types.
hook_field_display_alter modules/field/field.api.php Alters the display settings of a field before it gets displayed.
hook_field_display_ENTITY_TYPE_alter modules/field/field.api.php Alters the display settings of a field on a given entity type before it gets displayed.
hook_field_extra_fields modules/field/field.api.php Exposes "pseudo-field" components on fieldable entities.

Other projects


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