You are here

function date_api_update_6000 in Date 6.2

Make sure all the appropriate modules get enabled. Repeated again just to be sure they are set.

File

./date_api.install, line 269

Code

function date_api_update_6000() {
  $ret = array();

  // don't attempt to upgrade if views is not yet upgraded.
  if (module_exists('views') && drupal_get_installed_schema_version('views', TRUE) < 6000) {
    $ret = array();
    drupal_set_message(t('date module cannot be updated until after Views has been updated. Please return to <a href="@update-php">update.php</a> and run the remaining updates.', array(
      '@update-php' => base_path() . 'update.php?op=selection',
    )), 'warning', FALSE);
    $ret['#abort'] = array(
      'success' => FALSE,
      'query' => t('date.module has updates, but cannot be updated until views.module is updated first.'),
    );
    return $ret;
  }
  date_api_set_variables();
  return $ret;
}