Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions open_graph_comments.module
Original file line number Diff line number Diff line change
Expand Up @@ -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();
//
// }
//
//}