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.
Module is written not to display the block if there are no upcoming events and there is no text entered in the field "display when no upcoming events." The module works as indicated. BUT, if there is text entered in the footer field, the block displays with the footer text when there are no upcoming events. Is this a bug or intended? I would like the block to disappear when there are no upcoming events but want to be able to include a footer.
Comments
Comment #1
Se7enLC CreditAttribution: Se7enLC commentedHmm, that's interesting. The fact that the block doesn't display when there are no items is an unintended feature - the string to display is just blank, and therefore doesn't display - but when there's a footer, it displays, even with no items.
I could add in a check to see if there are no events and no "no events" text, and if so, return the same empty string, skipping over the footer text. That seems like it would be a good idea! It might be awhile until I get that change in there (still backed up by a few other important changes), but if somebody wants to try a patch, that would be a pretty easy one to put in.
Comment #2
jdwfly CreditAttribution: jdwfly commentedNeeds patch
Comment #3
jdwfly CreditAttribution: jdwfly commented1.4 no longer works at all.