diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 03:41:36 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 03:41:36 +0000 |
commit | 957feb0cd3574df9526f8907c55ae76363bed997 (patch) | |
tree | 1c7ec1f109bfa017f44d0c9fd3c9364c14752210 /modules | |
parent | 4ffebc570cf2586b0e80de02c87745c0df7f688d (diff) | |
download | brdo-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.module | 9 |
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) { |