function comment_node_type_load

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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.