Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- node_submit function requires an object: $node = node_submit((object)$form_state['values']);
- node_teaser function is not defined, use text_summary($node->body, $node->format);
- drupal_clone function is not defined, use clone($node);
- theme function requires an array, $output = theme('node_preview', array('node' => $cloned_node));
That's what I've found so far, unfortunately it's not working yet.
Comments
Comment #1
tito.brasolin CreditAttribution: tito.brasolin commentedI completely removed the teaser extraction part, my preview is working now! :)
Comment #2
maurizio.ganovelliThe last commit to the repository should have solved this problem: the paypernode_node_form_preview function now follows closely node_form_build_preview used by node.module to build node preview.