<?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: Custom field validation in Drupal</title>
	<atom:link href="http://www.webscaped.com/articles/2009/03/custom-field-validation-in-drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webscaped.com/articles/2009/03/custom-field-validation-in-drupal/</link>
	<description>Website of Michael Adams, Australian web developer</description>
	<lastBuildDate>Tue, 23 Aug 2011 09:07:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://www.webscaped.com/articles/2009/03/custom-field-validation-in-drupal/comment-page-1/#comment-30840</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 23 Aug 2011 09:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webscaped.com/?p=204#comment-30840</guid>
		<description>Thanks for this tutorial. I did the steps above in Drupal 7 without any problems, works great.
One minor problem though:
1. Create a story
2. Edit the story and try to change it to &quot;testing&quot;, validation will stop you from saving
3. Now try to delete.
The validation hook is triggered on the delete as well. By calling form_set_error delete will not be allowed.
Strange huh? Of course there is a workaround for the end-user, but what is the best-practice? Test the clicked-button in $formstate?</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial. I did the steps above in Drupal 7 without any problems, works great.<br />
One minor problem though:<br />
1. Create a story<br />
2. Edit the story and try to change it to &#8220;testing&#8221;, validation will stop you from saving<br />
3. Now try to delete.<br />
The validation hook is triggered on the delete as well. By calling form_set_error delete will not be allowed.<br />
Strange huh? Of course there is a workaround for the end-user, but what is the best-practice? Test the clicked-button in $formstate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rimu</title>
		<link>http://www.webscaped.com/articles/2009/03/custom-field-validation-in-drupal/comment-page-1/#comment-20230</link>
		<dc:creator>Rimu</dc:creator>
		<pubDate>Thu, 07 Apr 2011 22:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.webscaped.com/?p=204#comment-20230</guid>
		<description>In drupal 6, hook_nodeapi is cleaner</description>
		<content:encoded><![CDATA[<p>In drupal 6, hook_nodeapi is cleaner</p>
]]></content:encoded>
	</item>
</channel>
</rss>

