In zen/templates/node.tpl.php the node submitted info is hardcoded:

      <?php if ($display_submitted): ?>
        <span class="submitted">
          <?php
            print t('Submitted by !username on !datetime',
              array('!username' => $name, '!datetime' => $date));
          ?>
        </span>
      <?php endif; ?>

That makes it impossible to control the rendering with the theme_node_submitted() function.
To solve the problem you just have to change the peace of code to:

      <?php if ($display_submitted): ?>
        <span class="submitted">
          <?php print $submitted ?>
        </span>
      <?php endif; ?>

Comments

vegantriathlete’s picture

While it's true that you can't change the hard-coded text, in the comments at the top of node.tpl.php it says

* - $date: Formatted creation date. Preprocess functions can reformat it by
*   calling format_date() with the desired parameters on the $created variable.

Additionally, later in the comments it says

* The following variables are deprecated and will be removed in Drupal 7:
* - $picture: This variable has been renamed $user_picture in Drupal 7.
* - $submitted: Themed submission information output from
*   theme_node_submitted().

So, I'm guessing that this is a design choice and will not be addressed.

jix_’s picture

Status: Active » Closed (works as designed)
Jonah Ellison’s picture

Status: Closed (works as designed) » Active

Reopening -- I implemented theme_node_submitted() on my Zen subtheme and became rather frustrated when my node pages did not show my change.

While it looks like $submitted is deprecated in Drupal 7, the Drupal 6 theme should work with Drupal 6. (We'll all have to rewrite our themes to port it over to D7 anyway.) I agree with the the original poster -- change it to $submitted

johnalbin’s picture

Status: Active » Closed (works as designed)

If you are comfortable with implementing theme_node_submitted in your sub-theme, you should be comfortable overriding node.tpl.php in your sub-theme to put the soon-to-be-deprecated variable back in.

Jonah Ellison’s picture

The argument was for the Drupal 6 Zen theme to be compatible with Drupal 6 API. I am sad to see it not complying.

ahimsauzi’s picture

This line in D7 theme_preprocess_node: if (variable_get('node_submitted_' seems to be the issue. There no such variable in D7 API (unless I missed it somehow).

After implementing the overwrite to node.tpl, as suggested above, the error is gone.