function calendar_update_6000 in Calendar 6.2
File
- ./
calendar.install, line 73
Code
function calendar_update_6000() {
$ret = array();
// don't attempt to upgrade if views is not yet upgraded.
if (drupal_get_installed_schema_version('views', TRUE) < 6000) {
$ret = array();
drupal_set_message(t('Calendar 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('calendar.module has updates, but cannot be updated until views.module is updated first.'),
);
return $ret;
}
variable_del('calendar_empty_arg');
// Can't use variable_del because we don't have a reliable
// way to find the old view names.
db_query("DELETE FROM {variable} WHERE name LIKE 'calendar_%'");
cache_clear_all('variables', 'cache');
return $ret;
}