I wandered neck-deep into comment.module today and noticed a couple funny things. One of them is that the equivalent for node_load is _comment_load, even though this is a function likely to be called by other modules. A side-effect of this is any menu items which take a comment argument dynamically need to be:

'admin/foo/bar/%_comment'

...which just looks freaking dumb. :P

This is an API change, so I've put against 7.x.

Comments

webchick’s picture

StatusFileSize
new2.79 KB
coltrane’s picture

Category: bug » feature
StatusFileSize
new2.79 KB

Patch still applied with offset actually! But comment.admin.inc calls _comment_load() so needed to be patched as well.

dries’s picture

Status: Needs review » Needs work

I've committed this patch to CVS HEAD. Thanks webchick and coltrane.

This is an API change and therefore needs to be documented in the 'upgrading modules from D6 to D7' handbook page. Please mark this issue 'fixed' when this change is documented.

webchick’s picture

Status: Needs work » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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