Hi Folks,
I have a node expressed as an associate array: "$node = node_load($nid);" I have some mysteries:
First, "print_r($node)" produces the same output as "print_r(render($node))", and I think the reason is that I need to add properties to the $node array to tell render() what I want done. Are my suspicions correct?
Second, I seek to display $node as HTML. How do I do this?
Chris.
Hi Chris,
take a look at https://api.drupal.org/api/drupal/modules!node!node.module/function/node_vie...
berliner
Am 30.10.2013 um 17:05 schrieb Chris Miller cjm@tryx.org:
Hi Folks,
I have a node expressed as an associate array: "$node = node_load($nid);" I have some mysteries:
First, "print_r($node)" produces the same output as "print_r(render($node))", and I think the reason is that I need to add properties to the $node array to tell render() what I want done. Are my suspicions correct?
Second, I seek to display $node as HTML. How do I do this?
Chris.
[ Drupal support list | http://lists.drupal.org/ ]
From: "berliner" myberliner@gmail.com To: support@drupal.org Sent: Wednesday, October 30, 2013 9:19:18 AM Subject: Re: [support] render()
Hi Chris,
take a look at https://api.drupal.org/api/drupal/modules!node!node.module/function/node_vie...
Hi Berliner,
100%! Give yourself a raise! Thanks for the help.
Chris.