field_usage_tracker
Track and display where fields are used across content types, Views, and custom code. Useful for site audits, field cleanup, and refactoring.
Features
The Field Usage Tracker module provides a report listing all fields (field storages) used across your Drupal site. It helps developers, site builders, and auditors understand:
- Which fields are attached to which content types (or other entities)
- If those fields are used in any Views
- If those fields are referenced in custom PHP code (e.g., inside custom modules)
This module is especially useful when refactoring content types, removing unused fields, or performing site audits.
Post-Installation
- Install and enable the module as usual via Extend page or using Drush:
drush en field_usage_tracker - Navigate to /admin/reports/field-usage
- Review the report that shows all fields, their target entity and bundle, and usage status.
There is no additional configuration required. The module scans Views via the Views config and detects field usage in code by searching within custom module folders for field machine names.
Additional Requirements
No additional modules or libraries are required. This module works with Drupal core APIs and Views configuration.
Recommended modules/libraries
- Devel – for inspecting field info and entity structure.
- Views – although optional, field usage in Views can only be detected if Views module is enabled.
Similar projects
- Field Audit – focuses on listing field usage per bundle but does not check usage in Views or code.
- Unused Modules or Fields (custom scripts) – often need manual database queries; this module offers a UI-based solution.
This module is distinct in its combined focus on Views, custom code, and entity field mapping — all in a single report page.
Supporting this Module
If you find this module useful and would like to support its development or request new features, feel free to open an issue or contribute via the issue queue.
Community Documentation
- Drupal.org Documentation
- More documentation and usage guides will be added as the module evolves.