You are here

function upgrade_assist_enable in Upgrade Status 5

Same name and namespace in other branches
  1. 6 upgrade_assist/upgrade_assist.install \upgrade_assist_enable()

Implementation of hook_enable().

File

upgrade_assist/upgrade_assist.module, line 135
Assists in upgrading Drupal.

Code

function upgrade_assist_enable() {
  if (strpos(VERSION, '5') === 0) {

    // Enable maintenance mode.
    variable_set('site_offline', 1);
    drupal_set_message(t('This site is in maintenance mode now.'));

    // Check whether Demo, Update Status and Upgrade Status are enabled.
    // Enable our workflow block.
    _block_rehash();
  }
  else {
  }
}