poll_node_prepare_translation

Versions
7
poll_node_prepare_translation($node)

Implements hook_node_prepare_translation().

Code

modules/poll/poll.module, line 425

<?php
function poll_node_prepare_translation($node) {
  if ($node->type == 'poll') {
    $node->choice = $node->translation_source->choice;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.