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.
Hey, thanks for making this cool module, i was just wandering if there was a simple enough way to hide the badge once its hits 0?
Cheers
Comments
Comment #1
zengenuity CreditAttribution: zengenuity commentedThe badge callback needs to return NULL instead of 0 to be hidden.
If you're making the badge in Views, make sure that you're having it count 0 as empty and hiding the result when empty. I don't remember for sure, but I think I showed how do that in the screencast linked on the main module page.
Comment #2
zengenuity CreditAttribution: zengenuity commented