Format the "Submitted by username on date/time" for each node

Related topics

1 theme call to theme_node_submitted()
template_preprocess_node in includes/theme.inc
Process variables for node.tpl.php

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

function theme_node_submitted($node) {
  return t('Submitted by !username on @datetime', array(
    '!username' => theme('username', $node),
    '@datetime' => format_date($node->created),
  ));
}