Revision e9f59589
Added by Assos Assos over 10 years ago
drupal7/sites/all/modules/cas/cas.install | ||
---|---|---|
80 | 80 |
variable_del('cas_auto_assigned_role'); |
81 | 81 |
variable_del('cas_cert'); |
82 | 82 |
variable_del('cas_changePasswordURL'); |
83 |
variable_del('cas_check_first');
|
|
83 |
variable_del('cas_check_frequency');
|
|
84 | 84 |
variable_del('cas_debugfile'); |
85 | 85 |
variable_del('cas_domain'); |
86 | 86 |
variable_del('cas_exclude'); |
... | ... | |
108 | 108 |
|
109 | 109 |
// And old (un-used) variables. |
110 | 110 |
variable_del('cas_cert_verify'); |
111 |
variable_del('cas_check_first'); |
|
111 | 112 |
variable_del('cas_first_login'); |
112 | 113 |
variable_del('cas_hijack_user'); |
113 | 114 |
variable_del('cas_ldap_email_attribute'); |
... | ... | |
349 | 350 |
$moved_deltas = array(); |
350 | 351 |
update_fix_d7_block_deltas($sandbox, $renamed_deltas, $moved_deltas); |
351 | 352 |
} |
353 |
|
|
354 |
/** |
|
355 |
* Use variable 'cas_check_frequency' instead of 'cas_gateway'. |
|
356 |
*/ |
|
357 |
function cas_update_7101() { |
|
358 |
if (variable_get('cas_check_first', NULL) === NULL) { |
|
359 |
// The old variable was not set, nothing to do. |
|
360 |
return; |
|
361 |
} |
|
362 |
|
|
363 |
if (variable_get('cas_check_first', FALSE)) { |
|
364 |
// Check once, but not again until login. |
|
365 |
variable_set('cas_check_frequency', -1); |
|
366 |
} |
|
367 |
else { |
|
368 |
// Check never. |
|
369 |
variable_set('cas_check_frequency', -2); |
|
370 |
} |
|
371 |
variable_del('cas_check_first'); |
|
372 |
} |
Also available in: Unified diff
Weekly update of contrib modules