The code defines the function theme_comment_preview, but it's never invoked. Looks like a small code oversight, fix appended.

Comments

adixon’s picture

StatusFileSize
new547 bytes

And here it is again in proper format.

Actually, since my original submission of this patch, I've been working on a theme to display the comments in the modern trendy way with collapsible fieldsets so you can hide the ones you don't want, etc. In the process, it looks to me like the core comment.module code could use some updating - the themeing functions are a bit of a confusing rats nest of interdependent functions. If anyone's interested, I'd be happy to submit them as theme snippets, or even as a replacement to the current set of defaults.

drumm’s picture

Version: x.y.z » 6.x-dev
Category: bug » task
bdragon’s picture

Status: Needs review » Needs work

Autopatch Results for comment.patch_0.txt:
patching file comment.module
Hunk #1 FAILED at 1455.
1 out of 1 hunk FAILED -- saving rejects to file comment.module.rej

pasqualle’s picture

Status: Needs work » Needs review
StatusFileSize
new811 bytes

reroll

dvessel’s picture

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

I don't see how this fixes anything. What calls theme('comment_view').?

pasqualle’s picture

I made a mistake in the reroll: the theme('comment_view') is removed in original patch. that should be the problem?

dvessel’s picture

Status: Needs review » Closed (works as designed)

I took a deeper look and theme_comment_preview no longer exists. It's automatically invoked from the form data. It's not idea and confusing but for now this is how it is.

Read here on how to override in situations like this. I'm pretty sure it should apply.

http://drupal.org/node/173880#theme-registry-register-manually