Last active
August 29, 2015 14:24
-
-
Save makbeta/e741c6db77f790e80a99 to your computer and use it in GitHub Desktop.
Change submitted info line that automatically appears on posts in Drupal 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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