From c0cb68abccfa5daa442ad3deb410b81c7da7a52b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 9 Dec 2008 11:30:25 +0000 Subject: - Patch #319356 by recidive: clean up hook_nodeapi_ fucntion signatures and documentation because of previous node API clean-ups. --- modules/translation/translation.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/translation/translation.module') diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 984f12738..e7a1f589d 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -186,7 +186,7 @@ function translation_link($type, $node = NULL, $teaser = FALSE) { /** * Implementation of hook_nodeapi_prepare(). */ -function translation_nodeapi_prepare(&$node, $teaser, $page) { +function translation_nodeapi_prepare($node) { // Only act if we are dealing with a content type supporting translations. if (translation_supported_type($node->type)) { if (empty($node->nid) && isset($_GET['translation']) && isset($_GET['language']) && @@ -207,7 +207,7 @@ function translation_nodeapi_prepare(&$node, $teaser, $page) { /** * Implementation of hook_nodeapi_insert(). */ -function translation_nodeapi_insert(&$node, $teaser, $page) { +function translation_nodeapi_insert($node) { // Only act if we are dealing with a content type supporting translations. if (translation_supported_type($node->type)) { if (!empty($node->translation_source)) { @@ -228,7 +228,7 @@ function translation_nodeapi_insert(&$node, $teaser, $page) { /** * Implementation of hook_nodeapi_update(). */ -function translation_nodeapi_update(&$node, $teaser, $page) { +function translation_nodeapi_update($node) { // Only act if we are dealing with a content type supporting translations. if (translation_supported_type($node->type)) { if (isset($node->translation) && $node->translation && !empty($node->language) && $node->tnid) { @@ -245,7 +245,7 @@ function translation_nodeapi_update(&$node, $teaser, $page) { /** * Implementation of hook_nodeapi_delete(). */ -function translation_nodeapi_delete(&$node, $teaser, $page) { +function translation_nodeapi_delete($node) { // Only act if we are dealing with a content type supporting translations. if (translation_supported_type($node->type)) { translation_remove_from_set($node); -- cgit v1.2.3