Commit 957feb0c authored by webchick's avatar webchick

#404116 by neclimdul: Provide default choices on poll translations.

parent 4ffebc57
......@@ -411,6 +411,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().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment