<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to build a node in Drupal programmatically</title>
	<atom:link href="http://mediumexposure.com/how-build-node-drupal-programmatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://mediumexposure.com/how-build-node-drupal-programmatically/</link>
	<description>by Maxim Chernyak</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:30:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: pat</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-4136</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Tue, 07 Sep 2010 14:59:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-4136</guid>
		<description>&lt;p&gt;Nice but how to set default values for content type fields.
Nobody on the web explain it.
I know node_object_prepare but it fill only sticky, ... default values.
What to do for custom fields&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice but how to set default values for content type fields.
Nobody on the web explain it.
I know node_object_prepare but it fill only sticky, &#8230; default values.
What to do for custom fields</p>

<p>Thanks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Muhabbet</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-3789</link>
		<dc:creator>Muhabbet</dc:creator>
		<pubDate>Sun, 15 Aug 2010 21:32:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-3789</guid>
		<description>&lt;p&gt;Thank you a lot about very beneficial to my work was very useful thank you&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you a lot about very beneficial to my work was very useful thank you</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ycc</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-3703</link>
		<dc:creator>ycc</dc:creator>
		<pubDate>Tue, 03 Aug 2010 13:31:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-3703</guid>
		<description>&lt;p&gt;Thanks.&lt;/p&gt;

&lt;p&gt;Drupal is great, but sometimes its documentation lacks the practical parts a little, IMHO.&lt;/p&gt;

&lt;p&gt;This snippet clarifies a lot. Really useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>Thanks.</p>

<p>Drupal is great, but sometimes its documentation lacks the practical parts a little, IMHO.</p>

<p>This snippet clarifies a lot. Really useful.</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: J.D.</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-3550</link>
		<dc:creator>J.D.</dc:creator>
		<pubDate>Tue, 13 Jul 2010 18:17:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-3550</guid>
		<description>&lt;p&gt;I found this code very helpful. I wanted to add to it showing how you can add values to CCK fields:&lt;/p&gt;

&lt;p&gt;$newnode-&gt;field_custom_field = array(array(&#039;value&#039; =&gt; &#039;Custom Value Here&#039;));&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I found this code very helpful. I wanted to add to it showing how you can add values to CCK fields:</p>

<p>$newnode-&gt;field_custom_field = array(array(&#8216;value&#8217; =&gt; &#8216;Custom Value Here&#8217;));</p>]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-2976</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 20 May 2010 20:44:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-2976</guid>
		<description>&lt;p&gt;I was wondering if there was just a plugin that would do this. Thanks for the tip.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was wondering if there was just a plugin that would do this. Thanks for the tip.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bart</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-2112</link>
		<dc:creator>bart</dc:creator>
		<pubDate>Fri, 26 Mar 2010 18:40:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-2112</guid>
		<description>&lt;p&gt;great snippet! This seems to update node and node_revisions.  Is there a quick way to retrieve new node numbers to apply them to a custom content table?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>great snippet! This seems to update node and node_revisions.  Is there a quick way to retrieve new node numbers to apply them to a custom content table?</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: mx_</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-167</link>
		<dc:creator>mx_</dc:creator>
		<pubDate>Mon, 12 Nov 2007 01:56:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-167</guid>
		<description>&lt;p&gt;Theoretically, you could put it anywhere where drupal runs php (even evaluated blocks with php code), but ideally, you should put this code into your module.  When you start a new drupal website, you should always start at least one module to put all your custom functionality into it. For example, you might need this to run on hook_nodeapi (to respond to some drupal&#039;s event), or on hook_menu callback, or whatever you please.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>Theoretically, you could put it anywhere where drupal runs php (even evaluated blocks with php code), but ideally, you should put this code into your module.  When you start a new drupal website, you should always start at least one module to put all your custom functionality into it. For example, you might need this to run on hook_nodeapi (to respond to some drupal&#8217;s event), or on hook_menu callback, or whatever you please.</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-27</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 11 Nov 2007 12:52:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-27</guid>
		<description>&lt;p&gt;Could you clarify where does this code go? in a file by itself? how does it communicate with Drupal?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Could you clarify where does this code go? in a file by itself? how does it communicate with Drupal?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mx_</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-153</link>
		<dc:creator>mx_</dc:creator>
		<pubDate>Mon, 11 Jun 2007 11:55:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-153</guid>
		<description>&lt;p&gt;it&#039;s supposed to be:
global $user;&lt;/p&gt;

&lt;p&gt;(although php wouldn&#039;t care about spaces)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>it&#8217;s supposed to be:
global $user;</p>

<p>(although php wouldn&#8217;t care about spaces)</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: Familiar</title>
		<link>http://mediumexposure.com/how-build-node-drupal-programmatically/comment-page-1/#comment-1</link>
		<dc:creator>Familiar</dc:creator>
		<pubDate>Mon, 11 Jun 2007 06:21:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-1</guid>
		<description>&lt;p&gt;fifth line requires semi-colon &#039;;&#039;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>fifth line requires semi-colon &#8216;;&#8217;</p>]]></content:encoded>
	</item>
</channel>
</rss>

