diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-09 16:19:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-09 16:19:56 +0000 |
commit | cb159b9ff1b3165219292e63a89fa553d5811749 (patch) | |
tree | 3ebfbf4da01d867591855c0d3b2c81bca2b64809 /includes | |
parent | 3042f3385c65630a913e8ce6816bcd39526d5456 (diff) | |
download | brdo-cb159b9ff1b3165219292e63a89fa553d5811749.tar.gz brdo-cb159b9ff1b3165219292e63a89fa553d5811749.tar.bz2 |
#143434 by Jody Lynn: Move 'display post information' to where users would expect.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index b934462d6..952984372 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -918,11 +918,6 @@ function theme_get_settings($key = NULL) { 'toggle_secondary_menu' => 1, ); - if (module_exists('node')) { - foreach (node_get_types() as $type => $name) { - $defaults['toggle_node_info_' . $type] = 1; - } - } $settings = array_merge($defaults, variable_get('theme_settings', array())); if ($key) { @@ -2009,8 +2004,8 @@ function template_preprocess_node(&$variables) { // Flatten the node object's member fields. $variables = array_merge((array)$node, $variables); - // Display info only on certain node types. - if (theme_get_setting('toggle_node_info_' . $node->type)) { + // Display post information only on certain node types. + if (variable_get('node_submitted_' . $node->type, TRUE)) { $variables['submitted'] = theme('node_submitted', $node); $variables['picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', $node) : ''; } |