diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:30:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:30:25 +0000 |
commit | c0cb68abccfa5daa442ad3deb410b81c7da7a52b (patch) | |
tree | 81b7674938d4407a487b6d9735f2a30cf26a6380 /modules/taxonomy | |
parent | 7c30a1bac9ce4843178203040306c7ffd4dbc20c (diff) | |
download | brdo-c0cb68abccfa5daa442ad3deb410b81c7da7a52b.tar.gz brdo-c0cb68abccfa5daa442ad3deb410b81c7da7a52b.tar.bz2 |
- Patch #319356 by recidive: clean up hook_nodeapi_ fucntion signatures and documentation because of previous node API clean-ups.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 575e4dc17..ebb91459c 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1367,7 +1367,7 @@ function taxonomy_nodeapi_load($nodes) { /** * Implementation of hook_nodeapi_insert(). */ -function taxonomy_nodeapi_insert($node, $arg = 0) { +function taxonomy_nodeapi_insert($node) { if (!empty($node->taxonomy)) { taxonomy_node_save($node, $node->taxonomy); } @@ -1376,7 +1376,7 @@ function taxonomy_nodeapi_insert($node, $arg = 0) { /** * Implementation of hook_nodeapi_update(). */ -function taxonomy_nodeapi_update($node, $arg = 0) { +function taxonomy_nodeapi_update($node) { if (!empty($node->taxonomy)) { taxonomy_node_save($node, $node->taxonomy); } @@ -1385,42 +1385,42 @@ function taxonomy_nodeapi_update($node, $arg = 0) { /** * Implementation of hook_nodeapi_delete(). */ -function taxonomy_nodeapi_delete($node, $arg = 0) { +function taxonomy_nodeapi_delete($node) { taxonomy_node_delete($node); } /** * Implementation of hook_nodeapi_delete_revision(). */ -function taxonomy_nodeapi_delete_revision($node, $arg = 0) { +function taxonomy_nodeapi_delete_revision($node) { taxonomy_node_delete_revision($node); } /** * Implementation of hook_nodeapi_validate(). */ -function taxonomy_nodeapi_validate($node, $arg = 0) { +function taxonomy_nodeapi_validate($node, $form) { taxonomy_node_validate($node); } /** * Implementation of hook_nodeapi_rss_item(). */ -function taxonomy_nodeapi_rss_item($node, $arg = 0) { +function taxonomy_nodeapi_rss_item($node) { return taxonomy_rss_item($node); } /** * Implementation of hook_nodeapi_update_index(). */ -function taxonomy_nodeapi_update_index($node, $arg = 0) { +function taxonomy_nodeapi_update_index($node) { return taxonomy_node_update_index($node); } /** * Implementation of hook_nodeapi('update_index'). */ -function taxonomy_node_update_index(&$node) { +function taxonomy_node_update_index($node) { $output = array(); foreach ($node->taxonomy as $term) { $output[] = $term->name; |