Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Changed Fields API

303 sites Security covered
View on drupal.org

This module provides an API for developers to track changes to entity fields when an entity is updated. It allows you to react to specific field modifications, modify entity objects based on changed field values, or determine which fields have changed before saving.

API for developers that allows reacting on changed fields in a node (any entity since 8.x-3.x) when the node has been updated. It includes two demo modules: changed_fields_basic_usage and changed_fields_extended_field_comparator.

Use cases

  • You use services and services_client modules to deploy nodes on different sites and you want to avoid false positive requests (when node saved but nothing changed inside the node)
  • You want to modify node object depends on changed fields values.
  • You want to know which fields have been changed before node would be saved
  • Some other useful things

Supported field types for Drupal 8/9/10/11

All core's field types

Usage for Drupal 8/9/10/11

Please consider this Changed Fields API Drupal 8 usage guide.

What's new in 8.x-3.x?

Please see detailed description here.

Supported field types for Drupal 7

All core's field types

Additional field types:

Usage for Drupal 7

Please consider this Changed Fields API Drupal 7 usage guide.

Difference between 7.x-2.x and 7.x-3.x branches

  1. Branches are not compatible.
  2. 7.x-3.x is built on spl interfaces instead of custom ones.
  3. In 7.x-3.x you can define different observers with different observable bundles and its fields. In 7.x-2.x all the attached observers could observe only that bundles and its fields that were defined in subject object.

If you already use 7.x-2.x and you don't need new feature then you can stay on this version. If you haven't used this module yet but want to use it then install 7.x-3.x version.

Please see detailed description here.

Activity

Total releases
2
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
8.x-3.7 Stable May 10, 2025
8.x-3.6 Stable May 10, 2025