You are here

function lazyloader_update_7201 in Image Lazyloader 7.2

Rename lazyloader_exclude_option to lazyloader_path_exclude_option.

File

./lazyloader.install, line 75
Lazyloader Install

Code

function lazyloader_update_7201() {

  // Move the settings to their new variable if they differ from the default.
  $val = variable_get('lazyloader_exclude_option', LAZYLOADER_PAGE_EXCLUDE_OPTION);
  if ($val !== LAZYLOADER_PAGE_EXCLUDE_OPTION) {
    variable_set('lazyloader_page_exclude_option', $val);
  }

  // Remove the old value.
  variable_del('lazyloader_exclude_option');
}