Skip to content

Instantly share code, notes, and snippets.

@ngmaloney
Created March 3, 2010 20:23
Show Gist options
  • Save ngmaloney/320965 to your computer and use it in GitHub Desktop.
Save ngmaloney/320965 to your computer and use it in GitHub Desktop.
<?php
//Removing teaser view from a Drupal Node Preview
/**
* Overrided default preview output by removing teaser view
**/
function mytheme_preview($node) {
$output = '<div class="preview">';
$output .= node_view($node, 0, FALSE, 0);
$output .= "</div>\n";
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment