function _theme_time_ago in Heartbeat 7
Same name and namespace in other branches
- 6.4 heartbeat.common.inc \_theme_time_ago()
Heartbeat typical time ago
Return value
String with the time.
3 calls to _theme_time_ago()
- heartbeat_activity_poll in ./
heartbeat.pages.inc - Callback to poll for newer messages. Each stream is displayed within a context.
- theme_heartbeat_comment in modules/
heartbeat_comments/ heartbeat_comments.module - Theme function for heartbeat comment
- theme_heartbeat_time_ago in ./
heartbeat.module - Theme function for the timestamp of a message.
File
- ./
heartbeat.module, line 1768 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function _theme_time_ago($time) {
return t('@time ago', array(
'@time' => format_interval($_SERVER['REQUEST_TIME'] - $time, 1),
));
}