location_node.install 735 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the location_node module.
  5. */
  6. /**
  7. * Implentation of hook_uninstall().
  8. */
  9. function location_node_uninstall() {
  10. // Delete node settings.
  11. $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_settings_node_%'")->fetchCol();
  12. foreach ($result as $var) {
  13. variable_del($var);
  14. }
  15. // Delete compatibility variables.
  16. $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_maxnum_%'")->fetchCol();
  17. foreach ($result as $var) {
  18. variable_del($var);
  19. }
  20. $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_defaultnum_%'")->fetchCol();
  21. foreach ($result as $var) {
  22. variable_del($var);
  23. }
  24. }