public static function LingotekSync::deleteAccountInfo in Lingotek Translation 7.7
Deletes Lingotek Account information from the Drupal database
All entities should be disassociated from Lingotek TMS before calling this method
1 call to LingotekSync::deleteAccountInfo()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 1373 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function deleteAccountInfo() {
// These variable names are required for the Lingotek module to work properly therefore they are excluded.
$exclude_names = array(
'lingotek_advanced_parsing',
'lingotek_advanced_xml_config1',
'lingotek_advanced_xml_config2',
'lingotek_profiles',
);
db_delete('variable')
->condition('name', 'lingotek_%', 'LIKE')
->condition('name', $exclude_names, 'NOT IN')
->condition('name', 'lingotek_update_%', 'NOT LIKE')
->execute();
lingotek_cache_clear();
}