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 love the idea of the website being taken over by pirates. But, I want it to be a surprise when it happens. The input filter tip "Avast! This website be taken over by pirates on September 19th. Yarr!" kind of prevents that. I could disable the filter until then, but I don't really want to be in the admin panel at 12am adding the filter to all of my input formats. An example of how to do this is in the core HTML Filter.
Comment | File | Size | Author |
---|---|---|---|
#7 | 893078-pirate-optional-tip-d7-updated.patch.txt | 1.8 KB | sillygwailo |
#5 | 893078-pirate-optional-tip-d7.patch.txt | 2.36 KB | sillygwailo |
#1 | 893078-pirate-optional-tip.patch.txt | 1.61 KB | sillygwailo |
Comments
Comment #1
sillygwailoInteresting idea. Attached is a patch against 6.x-dev. I've made the default to display, since that's the expectation for filter modules. The text could use some "pirating" up.
Comment #2
meustrus CreditAttribution: meustrus commentedAy, do pirates come by light of day or dark of night?
Maybe?
Comment #3
sillygwailoComment #4
sillygwailoCommitted to 6.x-dev without the pirated-up language, since it's in the configuration only.
Comment #5
sillygwailoAttached is a patch for D7. I might have exposed a bug in core as a result: the way the patch for 7.x-dev works, the tips callback returns nothing if the setting is set to do that. Unfortunately, it will show an empty list item. That's because the tips callback will return a populated array with one of its keys having an empty value. I'll investigate the latter part and submit a separate issue if appropriate.
Comment #6
sillygwailoSubmitted a patch to core: #905068: Tips callback that returns nothing leads to empty list item
Comment #7
sillygwailoIn the meantime, a better patch for an updated 7.x-dev.
Comment #8
sillygwailoWith the patch to core committed, I've committed the feature to the 7.x-dev branch. Closing.