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;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.