<?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: Create Drupal Form elements like &#8216;DATE&#8217; element</title>
	<atom:link href="http://www.akchauhan.com/create-drupal-form-elements-like-date-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/</link>
	<description>PHP, MySql, JavaScript, JQuery, Prototype, Drupal, HTML, CSS and more...</description>
	<lastBuildDate>Thu, 05 Jan 2012 12:42:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Floris</title>
		<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/comment-page-1/#comment-56611</link>
		<dc:creator>Floris</dc:creator>
		<pubDate>Fri, 18 Nov 2011 22:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=177#comment-56611</guid>
		<description>This theme with D7 not work.. The theme type form_element not exist.. how can fix this problem?</description>
		<content:encoded><![CDATA[<p>This theme with D7 not work.. The theme type form_element not exist.. how can fix this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/comment-page-1/#comment-52529</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Thu, 22 Sep 2011 21:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=177#comment-52529</guid>
		<description>Regarding D7, you now pass &#039;variables&#039; instead.  Try modifying the code:

function mymodule_theme() {
  	return array(
    	&#039;cardexpdate&#039; =&gt; array(
       	&#039;variables&#039; =&gt; array(&#039;element&#039; =&gt; NULL))
	);
}</description>
		<content:encoded><![CDATA[<p>Regarding D7, you now pass &#8216;variables&#8217; instead.  Try modifying the code:</p>
<p>function mymodule_theme() {<br />
  	return array(<br />
    	&#8216;cardexpdate&#8217; =&gt; array(<br />
       	&#8216;variables&#8217; =&gt; array(&#8216;element&#8217; =&gt; NULL))<br />
	);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/comment-page-1/#comment-49601</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Wed, 10 Aug 2011 13:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=177#comment-49601</guid>
		<description>Hello! I have a problem.
I tried to do these three examples in Drupal 7 but got nothing. No errors, no output at all. What&#039;s wrong?</description>
		<content:encoded><![CDATA[<p>Hello! I have a problem.<br />
I tried to do these three examples in Drupal 7 but got nothing. No errors, no output at all. What&#8217;s wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AB</title>
		<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/comment-page-1/#comment-6902</link>
		<dc:creator>AB</dc:creator>
		<pubDate>Mon, 02 Nov 2009 09:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=177#comment-6902</guid>
		<description>Thanks for the good tutorial. This is useful for every one.

I am trying to create a custom form element for Drupal 6 Form API. In Process function, I wrote http://pastebin.com/f4d784832. But this is changing the ID of the element to &lt;&gt;-my-input and Name is changing to &lt;&gt;[my_input]. How do I prevent that?

Also, Can you explain the purpose of:

$parents = $element[&#039;#parents&#039;];
$parents[] = &#039;part2&#039;;
$element[&#039;part2&#039;] = array(
      	 ...
);

Can&#039;t we use (When I tried, it is returning some errors): 

$element = array(
      	 ...
);</description>
		<content:encoded><![CDATA[<p>Thanks for the good tutorial. This is useful for every one.</p>
<p>I am trying to create a custom form element for Drupal 6 Form API. In Process function, I wrote <a href="http://pastebin.com/f4d784832" rel="nofollow">http://pastebin.com/f4d784832</a>. But this is changing the ID of the element to &lt;&gt;-my-input and Name is changing to &lt;&gt;[my_input]. How do I prevent that?</p>
<p>Also, Can you explain the purpose of:</p>
<p>$parents = $element['#parents'];<br />
$parents[] = &#8216;part2&#8242;;<br />
$element['part2'] = array(<br />
      	 &#8230;<br />
);</p>
<p>Can&#8217;t we use (When I tried, it is returning some errors): </p>
<p>$element = array(<br />
      	 &#8230;<br />
);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aman</title>
		<link>http://www.akchauhan.com/create-drupal-form-elements-like-date-element/comment-page-1/#comment-6033</link>
		<dc:creator>Aman</dc:creator>
		<pubDate>Fri, 25 Sep 2009 05:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=177#comment-6033</guid>
		<description>Thats wonderful. I was searching for this since a long time. Thanks buddy, you made my day.</description>
		<content:encoded><![CDATA[<p>Thats wonderful. I was searching for this since a long time. Thanks buddy, you made my day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

