summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-11 10:40:07 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-11 10:40:07 +0000
commit0eb731d5e2885da281a9b97b2295b1182f25741c (patch)
tree63361d0355d1de5a0453d87ac41e640fec150d75 /database/updates.inc
parentb4552cd9770a0f6084c11e3e2a62909c1c76c956 (diff)
downloadbrdo-0eb731d5e2885da281a9b97b2295b1182f25741c.tar.gz
brdo-0eb731d5e2885da281a9b97b2295b1182f25741c.tar.bz2
- Patch #40463 by chx and baudolino: fixed fatal error in forms.inc.
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index d86fd751d..bf446eee9 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();
+}