function upgrade_status_core_version_form_submit in Upgrade Status 5
Same name and namespace in other branches
- 6 upgrade_status.module \upgrade_status_core_version_form_submit()
- 7 upgrade_status.module \upgrade_status_core_version_form_submit()
Set the new Drupal core version in a variable; refresh project data.
File
- ./
upgrade_status.admin.inc, line 715 - Checks to see if your installed modules are available for the next major release of Drupal.
Code
function upgrade_status_core_version_form_submit($form_id, $form_values) {
// Refresh status if a different version than the default has been selected.
if ($form_values['upgrade_status_core_version'] != UPGRADE_STATUS_CORE_VERSION) {
variable_set('upgrade_status_core_version', $form_values['upgrade_status_core_version']);
upgrade_status_refresh();
}
else {
if (variable_get('upgrade_status_core_version', UPGRADE_STATUS_CORE_VERSION) != UPGRADE_STATUS_CORE_VERSION) {
variable_del('upgrade_status_core_version');
upgrade_status_refresh();
}
else {
variable_del('upgrade_status_core_version');
}
}
}