function comment_uninstall
comment_uninstall()
Implements hook_uninstall().
File
- core/modules/comment/comment.install, line 14
- Install, update and uninstall functions for the Comment module.
Code
function comment_uninstall() {
// Remove the comment fields.
$fields = entity_load_multiple_by_properties('field_storage_config', array('type' => 'comment'));
foreach ($fields as $field) {
$field->delete();
}
// Remove state setting.
\Drupal::state()->delete('comment.node_comment_statistics_scale');
}
© 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/core!modules!comment!comment.install/function/comment_uninstall/8.1.x