From 413008b8909370514096cdc8a5fc186f5babd234 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 13 Sep 2010 05:50:09 +0000 Subject: #898520 follow-up by Damien Tournoud, chx, David Rothstein: Clean-up the upgrade path: comment. --- modules/node/node.install | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/node/node.install') 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 @@ -418,6 +418,17 @@ function node_update_dependencies() { return $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 * @{ -- cgit v1.2.3