function tmgmt_smartling_install in TMGMT Translator Smartling 8.4
Define needed states.
Variable 'tmgmt_smartling.bucket_name' must be unique per installation and must not be deleted when module is being uninstalled.
File
- ./
tmgmt_smartling.install, line 19 - Update function for the tmgmt_smartling module.
Code
function tmgmt_smartling_install() {
if (!Drupal::state()
->get('tmgmt_smartling.bucket_name', FALSE)) {
Drupal::state()
->set('tmgmt_smartling.bucket_name', uniqid());
}
tmgmt_extension_suit_init_default_config_values();
}