Add theming function to hide the comment form completely based on comment permissions settings

EvanDonovan - May 27, 2009 - 21:19
Project:Comment Permissions
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Does anyone know what would be the best way to write a theming function to only show the comment form if the comment permissions settings allow it? Since the comment form requires box.tpl.php, it doesn't seem as easy as I would like.

Ideally, it would be good if this were included in the module itself, which is why I listed this as a feature request.

#1

omerida - November 13, 2009 - 22:27

I'm not sure I understand this request. If you're trying to theme the comment form, you need to use whatever the core comment module provides. I don't think its within scope for this module to affect how the comment for is displayed.

#2

EvanDonovan - November 13, 2009 - 23:02

I'll have to check again, but I think the issue is that the "Post a comment" heading still shows up even when the comment form does not because the user doesn't have permission to post comments.

 
 

Drupal is a registered trademark of Dries Buytaert.