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
|
@ -268,7 +268,6 @@ function stormdok_db_rewrite_sql($query, $primary_table, $primary_field, $args)
|
|||
break;
|
||||
}
|
||||
}
|
||||
# drupal_set_message(print_r($return, TRUE));
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,8 +16,8 @@ function theme_stormdok_list($header, $doks) {
|
|||
(!empty($dok->project_title) ? ' » ' . l($dok->project_title, 'node/'. $dok->project_nid) : '' ) .
|
||||
(!empty($dok->task_title) ? ' » ' . l($dok->task_title, 'node/'. $dok->task_nid) : '' ),
|
||||
$dok->clip ? storm_icon('attached', t('Has attached files')) : ' ',
|
||||
format_date($dok->created, 'small'),
|
||||
format_date($dok->changed, 'small'),
|
||||
_format_small_date($dok->created),
|
||||
_format_small_date($dok->changed),
|
||||
$dok->version,
|
||||
array(
|
||||
'data' => storm_icon_edit_node($dok, $_GET) . storm_icon_delete_node($dok, $_GET),
|
||||
|
@ -76,14 +76,14 @@ function theme_stormdok_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