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.
I've added a optional duration field to my content type. But with no entered duration (set all values to 0) the result field is displayed anyway as 0 seconds. I wanted this field be hidden as other fields with no entered value. So I've created a patch which accomplishes this issue.
Comment | File | Size | Author |
---|---|---|---|
duration.diff | 1.56 KB | luusl |
Comments
Comment #1
spacer CreditAttribution: spacer commentedThanks - I was about to do the same thing, but found your post and applied the changes to the module code. Seems to work just fine.
Comment #2
derekwebb1 CreditAttribution: derekwebb1 commentedThanks for the patch! Seems to do what it needs to.