All pastes #738811 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-16 17:36 UTC
rendered paste body
/**
 * Enable the update.module on sites that had update_status module enabled.
 */
function system_update_6026() {
  $ret = array();

  if (module_exists('update_status')) {
    // If Update status module exists, replace it with the Update module from
    // core.
    module_disable(array('update_stauts'));
    module_enable(array('update'));  }  else {    // Notify user that new update module exists.    drupal_set_message(t('Drupal can check periodically for important bug fixes and security releases using the new Update status module. This module can be turned on from the <a href="@modules">modules administration page</a>. For more information please read the <a href="@update">Update status handbook page</a>.', array('@modules' => url('admin/build/modules'), '@update' => 'http://drupal.org/handbook/modules/update')));
  }

  return $ret;
}