You are here

function anonymous_publishing_update_7009 in Anonymous Publishing 7

Convert unlimited flood & autodelhoursd from 99/999 to -1 magic value.

File

./anonymous_publishing.install, line 533
Install and uninstall hooks.

Code

function anonymous_publishing_update_7009() {
  $flood = variable_get('anonymous_publishing_flood', 99);
  if ($flood == 99) {
    variable_set('anonymous_publishing_flood', -1);
  }
  $adh = variable_get('anonymous_publishing_autodelhours', 999);
  if ($adh == 999) {
    variable_set('anonymous_publishing_autodelhours', -1);
  }
}