diff options
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.install | 11 |
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 * @{ */ |