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.
Refactoring the countdown theme to accept the timestamp, accuracy and event name as parameters will make it possible for site developers to create more complex blocks with the countdown timer as a component.
This patch does not move the PHP logic out of the tpl.php file and into a preprocess() function as #1194950: Move PHP code from template to preprocess function suggests, but that should be done, too. This is the minimum needed to parameterize the template.
Comment | File | Size | Author |
---|---|---|---|
countdown-parameterize_theme.patch | 2.28 KB | John Franklin |
Comments
Comment #1
UsingSession CreditAttribution: UsingSession as a volunteer commented