New function to format small and short dates
This commit is contained in:
parent
e2d79c1bb4
commit
ce5f89b38f
18 changed files with 119 additions and 118 deletions
|
@ -58,14 +58,14 @@ function theme_stormteam_view($node, $teaser = FALSE, $page = FALSE) {
|
|||
$node->content['group_item']['created'] = array(
|
||||
'#prefix' => '<div class="created">',
|
||||
'#suffix' => '</div>',
|
||||
'#value' => theme('storm_view_item', t('Created'), format_date($node->created, 'small')),
|
||||
'#value' => theme('storm_view_item', t('Created'), _format_small_date($node->created)),
|
||||
'#weight' => 2,
|
||||
);
|
||||
if ($node->changed != $node->created) {
|
||||
$node->content['group_item']['modified'] = array(
|
||||
'#prefix' => '<div class="modified">',
|
||||
'#suffix' => '</div>',
|
||||
'#value' => theme('storm_view_item', t('Modified'), format_date($node->changed, 'small')),
|
||||
'#value' => theme('storm_view_item', t('Modified'), _format_small_date($node->changed)),
|
||||
'#weight' => 3,
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue