diff --git a/open_graph_comments.module b/open_graph_comments.module index 1a0a88d..72cd864 100755 --- a/open_graph_comments.module +++ b/open_graph_comments.module @@ -172,12 +172,20 @@ //} // ///** -// * Implements hook_node_type_delete(). +// * Implements hook_comment_type_delete(). +// * +// * @TODO: Set open_graph_comments_ config +// * // */ -//function open_graph_comments_node_type_delete($info) { -// // Delete open graph comments content type variable on delete of content type. -// $content_type_status = variable_get('open_graph_comments_' . $info->type, FALSE); -// if ($content_type_status) { -// variable_del('open_graph_comments_' . $info->type); -// } +//function open_graph_comment_type_delete(\Drupal\Core\Entity\EntityInterface $entity) { +// +// // Delete open graph comments content type variable on delete of content type. +// $content_type_status = \Drupal::config('open_graph_comments_'); +// +// if ($content_type_status) { +// +// $content_type_status->clear()->save(); +// +// } +// //}