comment_node_type_load

Versions
mediamosa-21
comment_node_type_load($name)

Menu loader callback for Field UI paths.

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

Code

modules/comment/comment.module, line 143

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