function comment_node_type_load

cis7 comment.module comment_node_type_load($name)
cle7 comment.module comment_node_type_load($name)
elmsmedia7 comment.module comment_node_type_load($name)
icor7 comment.module comment_node_type_load($name)
meedjum_blog7 comment.module comment_node_type_load($name)
mooc7 comment.module comment_node_type_load($name)

Menu loader callback for Field UI paths.

Return a comment bundle name from a node type in the URL.

File

modules/comment/comment.module, line 148
Enables users to comment on published content.

Code

function comment_node_type_load($name) {
  if ($type = node_type_get_type(strtr($name, array('-' => '_')))) {
    return 'comment_node_' . $type->type;
  }
}