Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_field_storage_pre_insert modules/field/field.api.php Act before the storage backends insert field data.
hook_field_storage_pre_load modules/field/field.api.php Act before the storage backends load field data.
hook_field_storage_pre_update modules/field/field.api.php Act before the storage backends update field data.
hook_field_storage_purge modules/field/field.api.php Remove field storage information when field data is purged.
hook_field_storage_purge_field modules/field/field.api.php Remove field storage information when a field record is purged.
hook_field_storage_purge_field_instance modules/field/field.api.php Remove field storage information when a field instance is purged.
hook_field_storage_query modules/field/field.api.php Execute an EntityFieldQuery.
hook_field_storage_update_field modules/field/field.api.php Update the storage information for a field.
hook_field_storage_write modules/field/field.api.php Write field data for an entity.
hook_field_update modules/field/field.api.php Define custom update behavior for this module's field data.
hook_field_update_field modules/field/field.api.php Act on a field being updated.
hook_field_update_forbid modules/field/field.api.php Forbid a field update from occurring.
hook_field_update_instance modules/field/field.api.php Act on a field instance being updated.
hook_field_validate modules/field/field.api.php Validate this module's field data.
hook_field_widget_error modules/field/field.api.php Flag a field-level validation error.
hook_field_widget_form modules/field/field.api.php Return the form for a single field widget.
hook_field_widget_form_alter modules/field/field.api.php Alter forms for field widgets provided by other modules.
hook_field_widget_info modules/field/field.api.php Expose Field API widget types.
hook_field_widget_info_alter modules/field/field.api.php Perform alterations on Field API widget types.
hook_field_widget_properties_alter modules/field/field.api.php Alters the widget properties of a field instance before it gets displayed.
hook_field_widget_properties_ENTITY_TYPE_alter modules/field/field.api.php Alters the widget properties of a field instance on a given entity type before it gets displayed.
hook_field_widget_settings_form modules/field_ui/field_ui.api.php Add settings to a widget settings form.
hook_field_widget_WIDGET_TYPE_form_alter modules/field/field.api.php Alter widget forms for a specific widget provided by another module.
hook_filetransfer_info modules/system/system.api.php Register information about FileTransfer classes provided by a module.
hook_filetransfer_info_alter modules/system/system.api.php Alter the FileTransfer class registry.
hook_file_copy modules/system/system.api.php Respond to a file that has been copied.
hook_file_delete modules/system/system.api.php Respond to a file being deleted.
hook_file_download modules/system/system.api.php Control access to private file downloads and specify HTTP headers.
hook_file_download_access modules/file/file.api.php Control download access to files.
hook_file_download_access_alter modules/file/file.api.php Alter the access rules applied to a file download.
hook_file_insert modules/system/system.api.php Respond to a file being added.
hook_file_load modules/system/system.api.php Load additional information into file objects.
hook_file_mimetype_mapping_alter modules/system/system.api.php Alter MIME type mappings used to determine MIME type from a file extension.
hook_file_move modules/system/system.api.php Respond to a file that has been moved.
hook_file_presave modules/system/system.api.php Act on a file being inserted or updated.
hook_file_update modules/system/system.api.php Respond to a file being updated.
hook_file_url_alter modules/system/system.api.php Alter the URL to a file.
hook_file_validate modules/system/system.api.php Check that files meet a given criteria.
hook_filter_format_disable modules/filter/filter.api.php Perform actions when a text format has been disabled.
hook_filter_format_insert modules/filter/filter.api.php Perform actions when a new text format has been created.
hook_filter_format_update modules/filter/filter.api.php Perform actions when a text format has been updated.
hook_filter_info modules/filter/filter.api.php Define content filters.
hook_filter_info_alter modules/filter/filter.api.php Perform alterations on filter definitions.
hook_flush_caches modules/system/system.api.php Add a list of cache tables to be cleared.
hook_form modules/node/node.api.php Display a node editing form.
hook_forms modules/system/system.api.php Map form_ids to form builder functions.
hook_form_alter modules/system/system.api.php Perform alterations before a form is rendered.
hook_form_BASE_FORM_ID_alter modules/system/system.api.php Provide a form-specific alteration for shared ('base') forms.
hook_form_FORM_ID_alter modules/system/system.api.php Provide a form-specific alteration instead of the global hook_form_alter().
hook_form_system_theme_settings_alter modules/system/theme.api.php Allow themes to alter the theme-specific settings form.

Other projects


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