When the recent blocks are in a sidebar, it can be difficult to fit the full time display that's there. In our case, we are adjusting it to only display times with a granularity of 1. That means the times are shown as "1 day" instead of "1 day 3 hours" for example, or "4 hours" instead of "4 hours 34 minutes." I thought this would make a good admin option, so I added it as an option to configure each recent block created, with how it will display dates, to what granularity.

Please see the attached patch for the adjustments I made to recent_blocks.module to accomplish this.

CommentFileSizeAuthor
recent_blocks-granularity.patch2.77 KBnschelly

Comments

nschelly’s picture

Status: Reviewed & tested by the community » Needs review

I suspect I set the status wrong... switching it to "code needs review")
-N

frank ralf’s picture

Status: Needs review » Postponed (maintainer needs more info)

No maintenance anymore for Drupal 5. But keeping an eye on this issue whether its relevant for other releases as well.

duaelfr’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This version of Recent Blocks is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.