Changed Fields API
Component ID
2553489
Component name
Changed Fields API
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
5468
Component created
Component changed
Component body
API for developers that allows to react on changed fields in node when 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 saved
- Some other useful things
Supported field types for Drupal7
All core's field types
Additional field types:
- date (date module)
- datestamp (date module)
- datetime (date module)
- phone (phone module)
- email (email module)
- link_field (link module)
- entityreference (entityreference module)
- field_collection (field_collection module)
Supported field types for Drupal8
All core's field types
Difference between 7.x-2.x and 7.x-3.x branches
- Branches are not compatible.
7.x-3.xis built onspl interfacesinstead of custom ones.- In
7.x-3.xyou can define different observers with different observable bundles and its fields. In7.x-2.xall 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.
Usage for Drupal7
Please consider this Changed Fields API Drupal 7 usage guide.
Usage for Drupal8
Please consider this Changed Fields API Drupal 8 usage guidee.
