function comment_node_type_update

cis7 comment.module comment_node_type_update($info)
cle7 comment.module comment_node_type_update($info)
elmsmedia7 comment.module comment_node_type_update($info)
icor7 comment.module comment_node_type_update($info)
meedjum_blog7 comment.module comment_node_type_update($info)
mooc7 comment.module comment_node_type_update($info)

Implements hook_node_type_update().

File

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

Code

function comment_node_type_update($info) {
  if (!empty($info->old_type) && $info->type != $info->old_type) {
    field_attach_rename_bundle('comment', 'comment_node_' . $info->old_type, 'comment_node_' . $info->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.