You are here

function ad_update_6009 in Advertisement 6.2

Same name and namespace in other branches
  1. 6.3 ad.install \ad_update_6009()

Value of iframe scrolling should be yes/no instead of on/off.

File

./ad.install, line 490
Advertisement module database schema.

Code

function ad_update_6009() {
  $scrolling = variable_get('ad_iframe_scroll', 'auto');
  if ('on' == $scrolling) {
    variable_set('ad_iframe_scroll', 'yes');
  }
  else {
    if ('off' == $scrolling) {
      variable_set('ad_iframe_scroll', 'no');
    }
  }
  return array();
}