summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 03:41:36 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 03:41:36 +0000
commit957feb0cd3574df9526f8907c55ae76363bed997 (patch)
tree1c7ec1f109bfa017f44d0c9fd3c9364c14752210 /modules
parent4ffebc570cf2586b0e80de02c87745c0df7f688d (diff)
downloadbrdo-957feb0cd3574df9526f8907c55ae76363bed997.tar.gz
brdo-957feb0cd3574df9526f8907c55ae76363bed997.tar.bz2
#404116 by neclimdul: Provide default choices on poll translations.
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) {