function cas_update_7101 in CAS 7
Use variable 'cas_check_frequency' instead of 'cas_gateway'.
File
- ./
cas.install, line 384 - Installation hooks for the CAS module.
Code
function cas_update_7101() {
if (variable_get('cas_check_first', NULL) === NULL) {
// The old variable was not set, nothing to do.
return;
}
if (variable_get('cas_check_first', FALSE)) {
// Check once, but not again until login.
variable_set('cas_check_frequency', -1);
}
else {
// Check never.
variable_set('cas_check_frequency', -2);
}
variable_del('cas_check_first');
}