Allow to modify content comment settings to Authenticated users

birwel - July 27, 2009 - 21:55

The problem is that I need to give users the option to choose if their contents can be commented or not.
The only way to set the comment settings on a node creation is being "comment administrator"

<?php
$form
['comment_settings'] = array(
       
'#type' => 'fieldset',
       
'#access' => user_access('administer comments'),
       
'#title' => t('Comment settings'),
       
'#collapsible' => TRUE,
       
'#collapsed' => TRUE,
       
'#weight' => 30,
      );
?>

I don't want auth users to be comment administrators
The only solution I see is creating my own comment_settings form in hook_form_alter and setting the comment settings after the submit.
Is there any other solution for it ?

Thanks in advance.

Found an issue about it

birwel - July 28, 2009 - 14:22

Hmmm... seems there was an issue about this... and seems that it was already patched.... it's been developed for the user comment module only.

http://drupal.org/node/174394

 
 

Drupal is a registered trademark of Dries Buytaert.