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
|
@ -34,7 +34,7 @@ function theme_stormevent_list($header, $events) {
|
|||
(!empty($event->task_title) ? ' » ' . l($event->task_title, 'node/'. $event->task_nid) : '' ),
|
||||
$event->clip ? storm_icon('attached', t('Has attached files')) : ' ',
|
||||
$eventdate,
|
||||
format_date($event->changed, 'small'),
|
||||
_format_small_date($event->changed),
|
||||
$event->version,
|
||||
array(
|
||||
'data' => storm_icon_edit_node($event, $_GET) . storm_icon_delete_node($event, $_GET),
|
||||
|
@ -100,14 +100,14 @@ function theme_stormevent_view($node, $teaser = FALSE, $page = FALSE) {
|
|||
$node->content['group1']['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' => 12,
|
||||
);
|
||||
if ($node->changed != $node->created) {
|
||||
$node->content['group1']['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' => 13,
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue