You are here

readonlymode.install in Read only mode 6

Same filename and directory in other branches
  1. 8 readonlymode.install
  2. 7 readonlymode.install

Update hook and uninstaller for the Read Only Mode module

File

readonlymode.install
View source
<?php

/**
 * @file
 * Update hook and uninstaller for the Read Only Mode module
 */
function readonlymode_uninstall() {
  variable_del('site_readonly');
  variable_del('site_readonly_message');
  variable_del('site_readonly_url');
}

/**
 * Delete old variables
 */
function readonlymode_update_6000() {
  $ret = array();
  variable_del('readonlymode');
  variable_del('readonlymode_path');
  return $ret;
}

Functions

Namesort descending Description
readonlymode_uninstall @file Update hook and uninstaller for the Read Only Mode module
readonlymode_update_6000 Delete old variables