readonlymode.install 373 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Update hook and uninstaller for the Read Only Mode module
  5. */
  6. function readonlymode_uninstall() {
  7. variable_del('site_readonly');
  8. variable_del('site_readonly_message');
  9. }
  10. /**
  11. * Delete old variables
  12. */
  13. function readonlymode_update_6000() {
  14. $ret = array();
  15. variable_del('readonlymode');
  16. variable_del('readonlymode_path');
  17. return $ret;
  18. }