diff --git a/database/updates.inc b/database/updates.inc index d86fd751d76d9631c769915e7f6439c11d7b4625..bf446eee9cfb13c559e4bc7bc89f7c3bcef57c71 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1223,3 +1223,15 @@ function system_update_159() { return $ret; } + +function system_update_160() { + $types = module_invoke('node', 'get_types'); + if (is_array($types)) { + foreach($types as $type) { + if (!is_array(variable_get("node_options_$type", array()))) { + variable_set("node_options_$type", array()); + } + } + } + return array(); +}