Community Documentation

theme_node_submitted

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),
  ));
}
?>

Comments

theme_node_submitted in Drupal 7

Login or register to post comments