From 7c95bd8a314347ee6c6774182b92f89e5bcc772a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=86=E0=A4=95=E0=A4=BE=E0=A4=B6=20=E0=A4=95=E0=A5=81?= =?UTF-8?q?=E0=A4=AE=E0=A4=BE=E0=A4=B0=20=E0=A4=B6=E0=A4=B0=E0=A5=8D?= =?UTF-8?q?=E0=A4=AE=E0=A4=BE?= Date: Sat, 27 Aug 2016 16:06:07 +0530 Subject: [PATCH] open_graph_comment_type_delete Hook implemented for comment type deletion --- open_graph_comments.module | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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(); +// +// } +// //}