summaryrefslogtreecommitdiff
path: root/modules/translation/translation.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-09 11:30:25 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-09 11:30:25 +0000
commitc0cb68abccfa5daa442ad3deb410b81c7da7a52b (patch)
tree81b7674938d4407a487b6d9735f2a30cf26a6380 /modules/translation/translation.module
parent7c30a1bac9ce4843178203040306c7ffd4dbc20c (diff)
downloadbrdo-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/translation/translation.module')
-rw-r--r--modules/translation/translation.module8
1 files changed, 4 insertions, 4 deletions
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);