summaryrefslogtreecommitdiff
path: root/modules/node/node.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-13 05:50:09 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-13 05:50:09 +0000
commit413008b8909370514096cdc8a5fc186f5babd234 (patch)
tree5068c96d3751e3486e7af0cdfdc3092083c6b5ce /modules/node/node.install
parent163808d2f1f5b16999ec427a153188e9a67b596a (diff)
downloadbrdo-413008b8909370514096cdc8a5fc186f5babd234.tar.gz
brdo-413008b8909370514096cdc8a5fc186f5babd234.tar.bz2
#898520 follow-up by Damien Tournoud, chx, David Rothstein: Clean-up the upgrade path: comment.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r--modules/node/node.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install
index e51e7f15c..c04f9b7ef 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -419,6 +419,17 @@ function node_update_dependencies() {
}
/**
+ * Utility function: fetch the node types directly from the database.
+ *
+ * This function is valid for a database schema version 7000.
+ *
+ * @ingroup update-api-6.x-to-7.x
+ */
+function _update_7000_node_get_types() {
+ return db_query('SELECT * FROM {node_type}')->fetchAllAssoc('type', PDO::FETCH_OBJ);
+}
+
+/**
* @defgroup updates-6.x-to-7.x System updates from 6.x to 7.x
* @{
*/