You are here

function stringoverrides_uninstall in String Overrides 7

Same name and namespace in other branches
  1. 8 stringoverrides.install \stringoverrides_uninstall()
  2. 5 stringoverrides.install \stringoverrides_uninstall()
  3. 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();
}