tags:

views:

16

answers:

1

With this code I show node in block:

print check_markup(node_load(777, NULL, TRUE) -> body);

Problem: block displayed even node 777 is unpublished. Thank you in advance!

+2  A: 
$node = node_load(777);
if ($node->status) {
  print $node->body...
}
Nikit
its work, many thanks.
romandor

related questions