You are here

function upgrade_assist_replace_core in Upgrade Status 6

Form constructor to disable non-core modules.

File

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

Code

function upgrade_assist_replace_core() {
  drupal_set_title(t('Replace Drupal core'));
  $domain = strtr($GLOBALS['base_url'], array(
    '://' => '://d7.',
  ));
  $form['help'] = array(
    '#value' => t('<p>At this point, it is recommended to</p>
<div class="item-list">
<ul>
<li>Create a new virtual host (e.g., <code>@domain</code>) on your webserver, pointing to a separate directory.</li>
<li>Download and extract the new <a href="@drupal-url">Drupal core</a> into that directory.</li>
<li>Copy all existing modules (for the previous version of Drupal core) into the identical locations.</li>
<li>Copy <code>settings.php</code> and the files directory into the identical locations.</li>
<li>Run <a href="@update-url" title="Run updates (new window)" target="_blank">@update-url</a>.</li>
</ul>
</div>
<p>If anything breaks, restore the current state from the backup you did earlier.</p>', array(
      '@drupal-url' => 'http://drupal.org/project/drupal',
      '@domain' => $domain,
      '@update-url' => $domain . '/update.php',
    )),
  );
  return $form;
}