Skip to content

Commit

Permalink
Issue #9 -Implement hook_config_info() (#10)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yorkshire-pudding authored Jan 13, 2022
1 parent 13ca345 commit 3f1991f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tawk_to.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 3f1991f

Please sign in to comment.