variable_realm.install 447 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Variable API module install file
  5. */
  6. /**
  7. * Implements hook_install()
  8. */
  9. function variable_realm_install() {
  10. // Set module weight for it to run before most modules and initialize variable realms
  11. db_query("UPDATE {system} SET weight = -1000 WHERE name = 'variable_realm' AND type = 'module'");
  12. }
  13. /**
  14. * Refresh cache so new classes are found.
  15. */
  16. function variable_realm_update_7000() {
  17. drupal_flush_all_caches();
  18. }