Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Last active February 17, 2021 03:35
Show Gist options
  • Select an option

  • Save frankyonnetti/5944805 to your computer and use it in GitHub Desktop.

Select an option

Save frankyonnetti/5944805 to your computer and use it in GitHub Desktop.
Drupal 6 - comment submitted by #drupal #d6
<?php
/**
* Change the output for submmited by in comments
*/
function rrm_comment_submitted($comment) {
return t('Posted by !username at @time', array(
'!username' => theme('username', $comment),
'@date' => format_date($comment->timestamp, 'custom', 'd M Y'),
'@time' => format_date($comment->timestamp, 'custom', 'g:i a')
));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment