pass "ago" information to the mail_list template
This commit is contained in:
parent
37a0504f96
commit
1e9d35fb0e
|
@ -351,6 +351,7 @@ function message_content(&$a) {
|
||||||
'$body' => template_escape($rr['body']),
|
'$body' => template_escape($rr['body']),
|
||||||
'$to_name' => template_escape($rr['name']),
|
'$to_name' => template_escape($rr['name']),
|
||||||
'$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'], t('D, d M Y - g:i A')),
|
'$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'], t('D, d M Y - g:i A')),
|
||||||
|
'$ago' => relative_date($rr['mailcreated']),
|
||||||
'$seen' => $rr['mailseen'],
|
'$seen' => $rr['mailseen'],
|
||||||
'$count' => sprintf( tt('%d message', '%d messages', $rr['count']), $rr['count']),
|
'$count' => sprintf( tt('%d message', '%d messages', $rr['count']), $rr['count']),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user