diff options
author | Silvio <silvio@devlet.com.br> | 2011-06-13 19:11:30 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-06-13 19:11:30 -0300 |
commit | b391eb8bd7b2dd2dba90d51b7316f0c8f33dd4e9 (patch) | |
tree | 5303b2f215b1074dc1625d3151cbc32e623d3147 | |
parent | 10755e6e7aebe10155149eedb8cef8a4d7ad4981 (diff) | |
download | taxonomy_node_tree-b391eb8bd7b2dd2dba90d51b7316f0c8f33dd4e9.tar.gz taxonomy_node_tree-b391eb8bd7b2dd2dba90d51b7316f0c8f33dd4e9.tar.bz2 |
Adding support for mysql_data_seek()
-rw-r--r-- | taxonomy_node_tree.module | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module index 0905ac8..5b9ab7f 100644 --- a/taxonomy_node_tree.module +++ b/taxonomy_node_tree.module @@ -52,6 +52,9 @@ function taxonomy_node_tree_parents($vid) { * @todo * It is assumed that nodes are just associated with a single term. * This could be changed to support multiple relationships. + * + * Also, current result rewind method should support postgresql + * data structures. */ function taxonomy_node_tree_index($nodes, $terms) { while ($node = db_fetch_object($nodes)) { @@ -69,6 +72,9 @@ function taxonomy_node_tree_index($nodes, $terms) { if (is_object($nodes)) { $nodes->data_seek(0); } + else { + mysql_data_seek($nodes, 0); + } return $tree; } |