You are here

function ad_update_6 in Advertisement 5.2

Same name and namespace in other branches
  1. 5 ad.install \ad_update_6()

Update embed-ad-#-count variable to use "-1" instead of "9999" to auto embed ads after the last paragraph.

File

./ad.install, line 319

Code

function ad_update_6() {
  $types = node_get_types();
  foreach ($types as $key => $type) {
    $count = variable_get("embed-ad-{$key}-count", 0);
    if ($count == 9999) {
      variable_set("embed-ad-{$key}-count", -1);
    }
  }
  return array();
}