API page: http://api.drupal.org/api/drupal/includes--theme.inc/function/theme/6

In the list of the preprocess functions that theme() looks for, the parameter list for such functions is always reported to be &$variables, even for template_preprocess(&$variables), which instead gets an additional parameter.

Files: 
CommentFileSizeAuthor
#2 0001-Change-docs-to-reflect-that-theme-preprocess-functio.patch3.08 KBmr.baileys
PASSED: [[SimpleTest]]: [MySQL] 190 pass(es).
[ View ]

Comments

Title:Documentation problem with theme()theme() doc - list of functions called is incorrect

Thanks! This does indeed look like a problem. D6 only (it was fixed in d7).

Title:theme() doc - list of functions called is incorrectTheme preprocess functions without hook-suffix take $hook as second argument.
Status:Active» Needs review
StatusFileSize
new3.08 KB
PASSED: [[SimpleTest]]: [MySQL] 190 pass(es).
[ View ]

Patch attached. Looking through the code for theme(), it seems that $hook is actually passed as second parameter to *all* preprocess functions, including the hook-specific ones. Since the parameter does not serve any use for those functions, I think it's best to leave it undocumented there...

Status:Needs review» Reviewed & tested by the community

Looks good, thanks!

Status:Reviewed & tested by the community» Fixed

Committed, thanks.

Status:Fixed» Closed (fixed)

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