summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/poll/poll.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 94c26253d..64b1f044d 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -412,6 +412,15 @@ function poll_validate($node, $form) {
}
/**
+ * Implementation of hook_node_prepare_translation().
+ */
+function poll_node_prepare_translation($node) {
+ if ($node->type == 'poll') {
+ $node->choice = $node->translation_source->choice;
+ }
+}
+
+/**
* Implementation of hook_load().
*/
function poll_load($nodes) {