Line 18 in the modules/node/node.tpl.php file.
* - $name: Themed username of node author output from theme_user().
Function theme_user() not exists. theme_username() must be here.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Title: Mistake in the system documentation » Function theme_user referenced in node.tpl.php does not exist
Project: Documentation » Drupal core
Version: » 7.x-dev
Component: Correction/Clarification » documentation

Problems in the API documentation belong in the Drupal project. Moving to correct queue and adding a more descriptive title.

This is a problem in 7.x as well as 6.x.
http://api.drupal.org/api/file/modules/node/node.tpl.php/7

axyjo’s picture

Here's a patch for D7

axyjo’s picture

Status: Active » Needs review
jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

If committed, needs to be patched in D6 as well.

axyjo’s picture

Yup, I can backport it once committed.

webchick’s picture

Version: 7.x-dev » 6.x-dev

Great, thanks! Committed to HEAD.

Moving down to 6.x.

jhodgdon’s picture

Status: Reviewed & tested by the community » Patch (to be ported)
axyjo’s picture

Ported to DRUPAL-6

axyjo’s picture

Status: Patch (to be ported) » Needs review

Forgot again.

webchick’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Same typo fix. RTBC.

drq’s picture

Don't mention it.

I translated a few topics of API into Russian and found this miastake.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to Drupal 6 too.

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix

Automatically closed -- issue fixed for 2 weeks with no activity.