function stringoverrides_uninstall in String Overrides 7
Same name and namespace in other branches
- 8 stringoverrides.install \stringoverrides_uninstall()
- 5 stringoverrides.install \stringoverrides_uninstall()
- 6 stringoverrides.install \stringoverrides_uninstall()
Implements hook_uninstall().
File
- ./
stringoverrides.install, line 11 - Stringoverride install.
Code
function stringoverrides_uninstall() {
// Remove all stored string replacements.
$or = db_or()
->condition('name', 'locale_custom_strings_%', 'LIKE')
->condition('name', 'locale_custom_disabled_strings_%', 'LIKE');
db_delete('variable')
->condition($or)
->execute();
}