countdown as a field formatter for date fields

Created on 15 October 2009, about 15 years ago
Updated 10 November 2023, 12 months ago

Please find attached a patch which allows the title to happen. It adds some admin options (and corresponding variables) to the block config form, basically with the option to select a CCK Date field (if Date is installed) plus choose if the event name should be the node title or not.

If the date field option is used, the module will only display the block on node pages with the selected date field available (obviously, the block needs to be able to load the node to function in this case).

While I was at it, I moved a whole bunch of logic from the template to a preprocess function, where it should be. This doesn't change anything - it just makes the template more simple and puts logic back in the module.

Final add is an install file with a hook_uninstall() implementation so the module deletes its variables if it gets removed. Always a good idea.

Currently applies against 6.x-1.0. Hope you like! Let me know if you need it re-rolling against 6.x-dev. Kinda hoping it will apply anyway. =)

Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇫🇷France greg.harvey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024