function cdn_update_6201 in CDN 6.2
Same name and namespace in other branches
- 7.2 cdn.install \cdn_update_6201()
More consistent variable names: upgrade path.
File
- ./
cdn.install, line 273 - Install file.
Code
function cdn_update_6201() {
$ret = array();
$cdn_exception_path_blacklist = variable_get('cdn_exclusion', NULL);
variable_del('cdn_exclusion');
if (isset($cdn_exception_path_blacklist)) {
variable_set('cdn_exception_path_blacklist', $cdn_exception_path_blacklist);
}
$cdn_exception_auth_users_blacklist = variable_get('cdn_exclusion_logged_in', NULL);
variable_del('cdn_exclusion_logged_in');
if (isset($cdn_exception_auth_users_blacklist)) {
variable_set('cdn_exception_auth_users_blacklist', $cdn_exception_auth_users_blacklist);
}
$ret[] = array(
'success' => TRUE,
'query' => 'Updated variables (internal name changes only, for improved consistency).',
);
return $ret;
}