How do I print into a block the node submission time.
something li开发者_如何学JAVAke... print $node->submitted_time
?
$node->created
is what you're looking for.
add block -> choose php filter, add code:
if ((arg(0) == 'node') && is_numeric(arg(1)) ) {
$node = node_load(arg(1));
if ($node) {
print format_date($node->created);
}
}
精彩评论