summaryrefslogtreecommitdiff
path: root/modules/node/node.install
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-05-05 01:14:22 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-05-05 01:14:22 -0400
commit8717a8da35fc5911947dfbea484e848df4a2cf01 (patch)
tree28271e55e2a32aed186cbc4c595ffb7565393647 /modules/node/node.install
parentd479272463262506658efad773b347d9c67f8a30 (diff)
downloadbrdo-8717a8da35fc5911947dfbea484e848df4a2cf01.tar.gz
brdo-8717a8da35fc5911947dfbea484e848df4a2cf01.tar.bz2
Issue #2465159 by David_Rothstein, NancyDru: Fixed a regression in Drupal 7.36 which caused certain kinds of content types to become disabled if they were defined by a no-longer-enabled module.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r--modules/node/node.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install
index 76c2aec28..0b0a7bd5a 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -934,5 +934,15 @@ function node_update_7014() {
}
/**
+ * Enable node types that may have been erroneously disabled in Drupal 7.36.
+ */
+function node_update_7015() {
+ db_update('node_type')
+ ->fields(array('disabled' => 0))
+ ->condition('base', 'node_content')
+ ->execute();
+}
+
+/**
* @} End of "addtogroup updates-7.x-extra".
*/