function comment_node_import_fields in Node import 6
Same name and namespace in other branches
- 5 supported/comment.inc \comment_node_import_fields()
Implementation of hook_node_import_fields().
File
- supported/
comment.inc, line 11 - Support file for the core comment module.
Code
function comment_node_import_fields($type) {
$fields = array();
if (($node_type = node_import_type_is_node($type)) !== FALSE) {
$fields['comment'] = array(
'title' => t('Comment settings'),
'group' => t('Comment settings'),
'module' => 'comment',
'weight' => 30,
'is_mappable' => user_access('administer comments'),
'allowed_values' => array(
COMMENT_NODE_DISABLED => t('Disabled'),
COMMENT_NODE_READ_ONLY => t('Read only'),
COMMENT_NODE_READ_WRITE => t('Read/Write'),
),
'default_value' => variable_get('comment_' . $node_type, COMMENT_NODE_READ_WRITE),
);
}
return $fields;
}