| 6 node.module | theme_node_submitted($node) |
Format the "Submitted by username on date/time" for each node
Related topics
File
- modules/
node/ node.module, line 2504 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
<?php
function theme_node_submitted($node) {
return t('Submitted by !username on @datetime',
array(
'!username' => theme('username', $node),
'@datetime' => format_date($node->created),
));
}
?> Login or register to post comments
Comments
theme_node_submitted in Drupal 7
http://drupal.org/update/themes/6/7#submitted_by