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.
By nicgal on
Hi, for a newbie in php, how could i display the event date in the event block....anybody with this?
thanks,
Comments
Same problem
I also would like see the event block display the event date. Right now the default display is days remaining. How can we change this? Take a look at the event block on my site:
http://www.squarefour.org
There is also some brief discussion here, but has gone no where for weeks:
http://drupal.org/node/30899
One of the comments there
One of the comments there suggested the code change should be in events.theme, a file included in the events module bundle. I took some blind stabs, not speaking php myself, and I think I found our answer.
I changed this line in events.theme from this:
To this. The change is in the last bit there where it says "event-timeleft":
It makes the block display the event start date instead of the days remaining. Its a barbaric fix, it doesn't consider events with date ranges, but its a step in the right direction. If it works for you then let me know so I can pat myself on the back. Never edited php on my own before.