From 3f1991fd8cf04a939b62bfe77d95178a448a3527 Mon Sep 17 00:00:00 2001 From: Martin Price Date: Thu, 13 Jan 2022 11:27:27 +0000 Subject: [PATCH] Issue #9 -Implement hook_config_info() (#10) * Implement hook_config_info() Implement hook_config_info() so export of config possible in configuration manager * Replace $info with $prefixes, fix spacing Replace $info with $prefixes to be consistent with core modules and fixed spacing at beginning of lines --- tawk_to.module | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tawk_to.module b/tawk_to.module index 667ddd8..1349996 100644 --- a/tawk_to.module +++ b/tawk_to.module @@ -206,3 +206,14 @@ function tawk_to_remove_widget() { backdrop_json_output(array('success' => true)); } + +/** +* Implements hook_config_info(). +*/ +function tawk_to_config_info() { + $prefixes[TawkHelper::TAWK_TO_CONFIG_NAME] = array( + 'label' => t('tawk.to'), + 'group' => t('Configuration'), + ); + return $prefixes; +}