You are here

function cdn_update_6201 in CDN 7.2

Same name and namespace in other branches
  1. 6.2 cdn.install \cdn_update_6201()

More consistent variable names: upgrade path.

File

./cdn.install, line 223
Install, update and uninstall functions for the CDN module.

Code

function cdn_update_6201() {
  $cdn_exception_path_blacklist = variable_get('cdn_exclusion');
  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');
  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);
  }
  return t('Updated variables (internal name changes only, for improved consistency).');
}