Loads the comment bundle name corresponding a given content type.
This function is used as a menu loader callback in comment_menu().
$name: The machine name of the node type whose comment fields are to be edited.
The comment bundle name corresponding to the node type.
function comment_node_type_load($name) {
if ($type = node_type_load($name)) {
return 'comment_node_' . $type->type;
}
}