diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-31 13:52:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-31 13:52:47 +0000 |
commit | 16051d46a94f360db508fc1fce436fa718f70e20 (patch) | |
tree | 2662ce194983bab900e600aff3c6fb6d8a9a80c1 /modules | |
parent | 4e350604519868988a4e635df2ff93643f8c51da (diff) | |
download | brdo-16051d46a94f360db508fc1fce436fa718f70e20.tar.gz brdo-16051d46a94f360db508fc1fce436fa718f70e20.tar.bz2 |
- Patch 42210 by Neil: Save whole node instead of saving taxonomy.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blogapi.module | 10 | ||||
-rw-r--r-- | modules/blogapi/blogapi.module | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module index 2e5fef9bc..8fa29326e 100644 --- a/modules/blogapi.module +++ b/modules/blogapi.module @@ -445,13 +445,13 @@ function blogapi_mt_set_post_categories($postid, $username, $password, $categori return blogapi_error($user); } - $nid = $postid; - $terms = array(); + $node = node_load($postid); + $node->taxonomy = array(); foreach ($categories as $category) { - $terms[] = $category['categoryId']; + $node->taxonomy[] = $category['categoryId']; } - module_invoke('taxonomy', 'node_save', $nid, $terms); - return true; + node_save($node); + return TRUE; } /** diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 2e5fef9bc..8fa29326e 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -445,13 +445,13 @@ function blogapi_mt_set_post_categories($postid, $username, $password, $categori return blogapi_error($user); } - $nid = $postid; - $terms = array(); + $node = node_load($postid); + $node->taxonomy = array(); foreach ($categories as $category) { - $terms[] = $category['categoryId']; + $node->taxonomy[] = $category['categoryId']; } - module_invoke('taxonomy', 'node_save', $nid, $terms); - return true; + node_save($node); + return TRUE; } /** |