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
|
@ -10,7 +10,7 @@ function theme_stormidea_list($header, $ideas) {
|
|||
foreach ($ideas as $idea) {
|
||||
$rows[] = array(
|
||||
'<span class="idea-title">' . $idea->title . '</span>',
|
||||
format_date($idea->changed, 'small'),
|
||||
_format_small_date($idea->changed),
|
||||
array(
|
||||
'data' => storm_icon_edit_node($idea, $_GET) . storm_icon_delete_node($idea, $_GET),
|
||||
'class' => 'storm_list_operations',
|
||||
|
@ -38,14 +38,14 @@ function theme_stormidea_view($node, $teaser = FALSE, $page = FALSE) {
|
|||
$node->content['group1']['created'] = array(
|
||||
'#prefix' => '<div class="created">',
|
||||
'#suffix' => '</div>',
|
||||
'#value' => theme('storm_view_item', t('Idea recorded'), format_date($node->created, 'small')),
|
||||
'#value' => theme('storm_view_item', t('Idea recorded'), _format_small_date($node->created)),
|
||||
'#weight' => 12,
|
||||
);
|
||||
if ($node->changed != $node->created) {
|
||||
$node->content['group1']['modified'] = array(
|
||||
'#prefix' => '<div class="created">',
|
||||
'#suffix' => '</div>',
|
||||
'#value' => theme('storm_view_item', t('Note updated'), format_date($node->changed, 'small')),
|
||||
'#value' => theme('storm_view_item', t('Note updated'), _format_small_date($node->changed)),
|
||||
'#weight' => 13,
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue