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.
Views has the ability to change the output format for Sticky and Published to Yes/No, True/False, On/Off, Published/Not Published, Sticky/Not Sticky, etc.
It would be great to have the same option for:
field: Comment: Approved that allows "Approved/Not Approved"
field: User: Active that allows "Active/Blocked"
Example of what is provided for "Published" output formats:
Comment | File | Size | Author |
---|---|---|---|
#2 | patch_views_ouput_format_new_formats_2.patch | 1.01 KB | mkadin |
Comments
Comment #1
dawehnerThis seems to be a great task
Comment #2
mkadin CreditAttribution: mkadin commentedHere's a patch for both pieces of functionality.
Comment #3
dawehnerAwesome! The patch looks perfect. Committed to 7.x-3.x