function comment_node_type_load

Loads the comment bundle name corresponding a given content type.

This function is used as a menu loader callback in comment_menu().

Parameters

$name: The machine name of the node type whose comment fields are to be edited.

Return value

The comment bundle name corresponding to the node type.

See also

comment_menu_alter()

File

drupal/core/modules/comment/comment.module, line 139
Enables users to comment on published content.

Code

function comment_node_type_load($name) {
  if ($type = node_type_load($name)) {
    return 'comment_node_' . $type->type;
  }
}