Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm sure this is a straight forward thing for someone with more programming skill (I've not yet fully grasped the Drupal API)...
The event module implements a block which shows the upcoming events from the database. However, this selects from all the entries in the database (filtered based on the number of results that you want).
I have a number of taxonomy terms linked to events in my calendar and need to display the upcoming events related to each of the terms.
I'd like to theme the blog_link function in blog.module to
change the way my links are displayed. After a bit of research it seems
that I've to change the function itself to achive this effect. I don't like this
solution.
However it occured to me that maybe it could be done by overwriting an
hipothetical theme_blog_link function in phptemplate (that same way we theme users' profiles).
I want to put stome statistics in a block but there is no point in doing all the database accesses every time a
page is rendered to recalculate the stats as the stats won't change fast at all. I would like to calculate them once when someone logs in and then I presume the best thing is to store them in a global variable. I will also store the time and then recalculate every hour or so.
How do I actually do that? I also assume that having the same name won't affect multiple logged in users who will have different stats values?