From 9ada5dec79b8f42e47a7245a91b669e240c6f6c9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 1 Dec 2010 00:18:15 +0000 Subject: #364470 follow-up by Dave Reid, JohnAlbin, et al: Move submitted by back into a variable. The string approach was too limited. --- modules/node/node.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/node/node.module') 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'] = ''; } -- cgit v1.2.3