<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHPJavascript &#187; Drupal</title>
	<atom:link href="http://www.phpjavascript.com/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpjavascript.com</link>
	<description>Web Development Guide - My Personal Library of Tutorials and Scripts</description>
	<lastBuildDate>Tue, 24 Jan 2012 08:08:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal Views Exposed Computed Field Dropdown Select</title>
		<link>http://www.phpjavascript.com/drupal-views-exposed-computed-field-dropdown-select/</link>
		<comments>http://www.phpjavascript.com/drupal-views-exposed-computed-field-dropdown-select/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 08:07:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=647</guid>
		<description><![CDATA[In views I wanted to expose a computed field but instead of textbox I wanted it to be a select drop down box with values coming from the database.
To achieve this I created a module and used the hook form_alter:
function mymodule_form_alter(&#38;$form, $form_state, $form_id) {
switch($form_id) { 
 case 'views_exposed_form':

 if ($form['#id'] == 'views-exposed-form-search-jobseeker-page-1') {     
 $form['field_country_value']['#type'] = [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-views-exposed-computed-field-dropdown-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Addresses Computed Field</title>
		<link>http://www.phpjavascript.com/drupal-addresses-computed-field/</link>
		<comments>http://www.phpjavascript.com/drupal-addresses-computed-field/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 07:35:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=645</guid>
		<description><![CDATA[I was addresses module but using the values of country and city in views or search or any custom module is a headache because the module saves the country / city / providence values in initials.
To overcome this issue I created to cck computed fields save the country and city values in it respectively.
To get [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-addresses-computed-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal forms theme table</title>
		<link>http://www.phpjavascript.com/drupal-forms-theme-table/</link>
		<comments>http://www.phpjavascript.com/drupal-forms-theme-table/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 06:38:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=633</guid>
		<description><![CDATA[awesome tutorial on how to theme drupal6 forms with tables
http://www.akchauhan.com/create-drupal-form-using-theme_table-like-module-list-form/
and to learn about forms API in general visit
http://drupal.org/node/262422
I have basically created a module along with &#8216;job search&#8217; module to build a recruitment web portal .. will hopefully write in detail and with my module code later.
]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-forms-theme-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Views Total CCK field (Two content types related)</title>
		<link>http://www.phpjavascript.com/drupal-views-total-cck-field-two-content-types-related/</link>
		<comments>http://www.phpjavascript.com/drupal-views-total-cck-field-two-content-types-related/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 08:17:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=627</guid>
		<description><![CDATA[There are two related content types and I wanted to find the total of one content type entries  applied against another.
Example.
I have two content types job and resumes. I need to display the total no of applications against &#8216;job&#8217; as a field in my view.
According to me the best way to achieve this is through [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-views-total-cck-field-two-content-types-related/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Theme Form CCK User Register</title>
		<link>http://www.phpjavascript.com/drupal-theme-form-cck-user-register/</link>
		<comments>http://www.phpjavascript.com/drupal-theme-form-cck-user-register/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 07:44:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=623</guid>
		<description><![CDATA[To theme drupal forms using cck fields do the following:
Insert theme hook function in the template.php file: (dmcdubai is my theme name, replace it with yours)
function dmcdubai_theme($existing, $type, $theme, $path) {
 return array(
 'profile_node_form' =&#62; array(
 'arguments' =&#62; array('form' =&#62; NULL),
 'template' =&#62; 'node-profile-edit'
 ),
 'user_register' =&#62; array(
 'arguments' =&#62; array('form' =&#62; NULL),
 'template' =&#62; [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-theme-form-cck-user-register/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drupal Form Theme CCK</title>
		<link>http://www.phpjavascript.com/drupal-form-theme-cck/</link>
		<comments>http://www.phpjavascript.com/drupal-form-theme-cck/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 07:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=619</guid>
		<description><![CDATA[check out http://drupal.org/node/601646 the best summarized description of how to theme drupal forms.
and also go through this slide presentation describing the overall drupal forms architecture and workflow.
Now I had created a Content type to add fields at the user registration form. And when I was trying to theme the form using the above solution I [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-form-theme-cck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Form Alter Fields</title>
		<link>http://www.phpjavascript.com/drupal-form-alter-fields/</link>
		<comments>http://www.phpjavascript.com/drupal-form-alter-fields/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 08:01:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=616</guid>
		<description><![CDATA[Learn how to add, delete and edits fields to any form in Drupal. Like the user registration form, contact form or any other customized form.
This tutorial explains the basics of the form_alter(), explaining the concept in clean and clear format.
Click here to view the tutorial.
]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-form-alter-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal drupal_mail module</title>
		<link>http://www.phpjavascript.com/drupal-drupal_mail-module/</link>
		<comments>http://www.phpjavascript.com/drupal-drupal_mail-module/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 06:45:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=613</guid>
		<description><![CDATA[How to use drupal_mail while sending in drupal custom modules.


Here&#8217;s a code snippet that shows you how to use the  drupal_mail function to send an email. First, define a callback function  that will handle the creation of the message. NOTE: this function must  end with &#8220;_mail&#8221;
&#60;?php
function MYMODULE_mail($key, &#38;$message, $params) {
switch ($key) {
case [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-drupal_mail-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Content Save Page Redirect Taxonomy Term</title>
		<link>http://www.phpjavascript.com/drupal-content-save-page-redirect-taxonomy-term/</link>
		<comments>http://www.phpjavascript.com/drupal-content-save-page-redirect-taxonomy-term/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 08:46:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=610</guid>
		<description><![CDATA[I wanted redirect the webpage to the taxonomy term page after a user submits a specific content type.
1 &#8211; I used rules to save a session variable once the content is saved
&#60;?php
$term_id= [node:term-id];
$_SESSION["question_term_id"] = $term_id;
?&#62;
2 &#8211; I created a general thank you page. Choose Body format as &#8220;php&#8221;. Put in the below code before the [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-content-save-page-redirect-taxonomy-term/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal CCK Computed Field Database</title>
		<link>http://www.phpjavascript.com/drupal-cck-computed-field-database/</link>
		<comments>http://www.phpjavascript.com/drupal-cck-computed-field-database/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 05:00:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpjavascript.com/?p=605</guid>
		<description><![CDATA[How to extract and manipulated data from the database and then save it in the cck computer field.
computed code: 
$nid=$node-&#62;nid;
 $result = db_query("SELECT * FROM {uc_product_options} WHERE nid='$nid' order by price desc");
 $row = db_fetch_array($result);
 $sell_price=number_format($node-&#62;sell_price, 2, '.', ' ');
 $maxprice = $row["price"]+$sell_price; $maxprice=number_format($maxprice, 2, '.', ' ');
 if($maxprice&#60;&#62;$sell_price)
 $node_field[0]['value'] = "From ".$sell_price."AED - ".$maxprice."AED";     [...]]]></description>
		<wfw:commentRss>http://www.phpjavascript.com/drupal-cck-computed-field-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

