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.
Hi,
i think it makes sense to give the time-ago text an own html class for easing theming.
Something like:
function _theme_time_ago($time) {
return '<span class="timeago">' . t('@time ago', array('@time' => format_interval(($_SERVER['REQUEST_TIME'] - $time), 1))) . '</span>';
}
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedFixed in dev