mappy.install 717 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Provides data for installation and removing module.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. *
  9. * Remove our variables after uninstall.
  10. */
  11. function mappy_uninstall() {
  12. variable_del('mappy_google_width');
  13. variable_del('mappy_google_height');
  14. variable_del('mappy_yandex_width');
  15. variable_del('mappy_yandex_height');
  16. variable_del('mappy_load_pages_match');
  17. variable_del('mappy_load_pages_path');
  18. }
  19. /**
  20. * In Mappy 7.x-1.4 Yandex.Maps will be updated to new version 2.1.x.
  21. * This version is not incompatible with 2.0 version of API.
  22. */
  23. function mappy_update_7100(&$sandbox) {
  24. // Version declaration can be found in mappy.admin.inc:48
  25. variable_set('mappy_yandex_version', 1);
  26. }