Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Attached is a patch to standardize the json output for the Audit content option. This patch converts the text/markup rendered currently with the --json option for both the summary and the detail (--detail) reports.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2496847-generate-json-for-audit-content.patch | 8.69 KB | lhridley |
Comments
Comment #1
lhridley CreditAttribution: lhridley as a volunteer commentedComment #2
lhridley CreditAttribution: lhridley as a volunteer commentedComment #3
lhridley CreditAttribution: lhridley as a volunteer commentedComment #4
FluxSauce CreditAttribution: FluxSauce commentedThanks for the patch! Similar feedback to the others.
Same feedback on consolidation applies as well; just instantiate
$ret_val
as an array and populate it.FieldInstances - doesn't look like that array is constructed properly, are you sure about that?
ContentTypeCounts - simplify and reduce nesting. For example:
Also, you're overwriting $ret_val which included the total count from earlier.
Will do a more thorough functional review after these changes are implemented.