$form['workflow']['comment_'.$node->type]=array('#type'=>'radios','#title'=>t('Default comment setting'),'#default_value'=>variable_get('comment_'.$node->type,COMMENT_NODE_READ_WRITE),'#options'=>array(t('Disabled'),t('Read only'),t('Read/Write')),'#description'=>t('Users with the <em>administer comments</em> permission will be able to override this setting.'));
}
}
/**
* Implementation of hook_nodeapi().
*
*/
functioncomment_nodeapi(&$node,$op,$arg=0){
switch($op){
case'settings':
$form['comment_'.$node->type]=array('#type'=>'radios','#title'=>t('Default comment setting'),'#default_value'=>variable_get('comment_'.$node->type,COMMENT_NODE_READ_WRITE),'#options'=>array(t('Disabled'),t('Read only'),t('Read/Write')),'#description'=>t('Users with the <em>administer comments</em> permission will be able to override this setting.'));
$form['workflow']['comment_'.$node->type]=array('#type'=>'radios','#title'=>t('Default comment setting'),'#default_value'=>variable_get('comment_'.$node->type,COMMENT_NODE_READ_WRITE),'#options'=>array(t('Disabled'),t('Read only'),t('Read/Write')),'#description'=>t('Users with the <em>administer comments</em> permission will be able to override this setting.'));
}
}
/**
* Implementation of hook_nodeapi().
*
*/
functioncomment_nodeapi(&$node,$op,$arg=0){
switch($op){
case'settings':
$form['comment_'.$node->type]=array('#type'=>'radios','#title'=>t('Default comment setting'),'#default_value'=>variable_get('comment_'.$node->type,COMMENT_NODE_READ_WRITE),'#options'=>array(t('Disabled'),t('Read only'),t('Read/Write')),'#description'=>t('Users with the <em>administer comments</em> permission will be able to override this setting.'));
@@ -1240,10 +1239,9 @@ function node_types_configure($type = NULL) {
'#description'=>t('The minimum number of words a %type must be to be considered valid. This can be useful to rule out submissions that do not meet the site\'s standards, such as short test posts.',array('%type'=>node_get_name($type)))
'#options'=>array('status'=>t('Published'),'moderate'=>t('In moderation queue'),'promote'=>t('Promoted to front page'),'sticky'=>t('Sticky at top of lists'),'revision'=>t('Create new revision')),
'#description'=>t('Users with the <em>administer nodes</em> permission will be able to override these options.'),
@@ -1240,10 +1239,9 @@ function node_types_configure($type = NULL) {
'#description'=>t('The minimum number of words a %type must be to be considered valid. This can be useful to rule out submissions that do not meet the site\'s standards, such as short test posts.',array('%type'=>node_get_name($type)))
'#options'=>array('status'=>t('Published'),'moderate'=>t('In moderation queue'),'promote'=>t('Promoted to front page'),'sticky'=>t('Sticky at top of lists'),'revision'=>t('Create new revision')),
'#description'=>t('Users with the <em>administer nodes</em> permission will be able to override these options.'),