Skip to content

Instantly share code, notes, and snippets.

@makbeta
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makbeta/e741c6db77f790e80a99 to your computer and use it in GitHub Desktop.
Save makbeta/e741c6db77f790e80a99 to your computer and use it in GitHub Desktop.
Change submitted info line that automatically appears on posts in Drupal 7
<?php
THEME_preprocess_node(&$variables, $hook) {
if ($variables['submitted']) {
$variables['submitted'] = t('Posted by !username !datetime', array('!username' => $variables['name'], '!datetime' => format_date($variables['node']->created, 'custom', 'F j, Y')));
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment