diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-01 00:18:15 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-01 00:18:15 +0000 |
commit | 9ada5dec79b8f42e47a7245a91b669e240c6f6c9 (patch) | |
tree | 4c442b288dcedfef32ee31e6e85004db5d37c19c /modules/node/node.module | |
parent | 66ffb5f7e8562a2f880be3b58dcf1e602cd95d4f (diff) | |
download | brdo-9ada5dec79b8f42e47a7245a91b669e240c6f6c9.tar.gz brdo-9ada5dec79b8f42e47a7245a91b669e240c6f6c9.tar.bz2 |
#364470 follow-up by Dave Reid, JohnAlbin, et al: Move submitted by back into a variable. The string approach was too limited.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index d7cc85d83..47173cc04 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1467,10 +1467,12 @@ function template_preprocess_node(&$variables) { // Display post information only on certain node types. if (variable_get('node_submitted_' . $node->type, TRUE)) { $variables['display_submitted'] = TRUE; + $variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date'])); $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', array('account' => $node)) : ''; } else { $variables['display_submitted'] = FALSE; + $variables['submitted'] = ''; $variables['user_picture'] = ''; } |