wysiwyg_filter.install 519 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * @file
  4. * Module installation/uninstallation hooks.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function wysiwyg_filter_uninstall() {
  10. // Delete all module variables and then clear the variables cache.
  11. // TODO Please review the conversion of this statement to the D7 database API syntax.
  12. /* db_query("DELETE FROM {variable} WHERE name LIKE 'wysiwyg\_filter\_%'") */
  13. db_delete('variable')
  14. ->condition('name', 'wysiwyg\_filter\_%', 'LIKE')
  15. ->execute();
  16. cache_clear_all('variables', 'cache');
  17. }