reroute_email.install 818 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * @file
  4. * Reroute Email module installation functions.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function reroute_email_uninstall() {
  10. variable_del('reroute_email_address');
  11. variable_del('reroute_email_enable');
  12. variable_del('reroute_email_enable_message');
  13. }
  14. /**
  15. * Implements hook_install().
  16. */
  17. function reroute_email_install() {
  18. db_update('system')
  19. ->fields(array('weight' => 99))
  20. ->condition('type', 'module', '=')
  21. ->condition('name', 'reroute_email')
  22. ->execute();
  23. }
  24. /**
  25. * Update module's weight.
  26. */
  27. function reroute_email_update_7100() {
  28. db_update('system')
  29. ->fields(array('weight' => 99))
  30. ->condition('type', 'module', '=')
  31. ->condition('name', 'reroute_email')
  32. ->execute();
  33. return t('The weight of the Reroute Email module was updated to 99.');
  34. }