The argument passed to the function is a full node object, not an nid:

function public_preview_preview_page($node) {
  $nid = $node->nid;
CommentFileSizeAuthor
#2 public_preview.patch1.22 KBagentrickard

Comments

agentrickard’s picture

Status: Active » Needs review
agentrickard’s picture

StatusFileSize
new1.22 KB

Patch for all open issues.

chrisyates’s picture

Status: Needs review » Fixed

Fixed by 6.x-1.1 release with your patch. Thanks Ken!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.