function comment_node_type_update
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); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_node_type_update/7.x