<?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>Richard Castera &#187; Drupal</title>
	<atom:link href="http://www.richardcastera.com/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardcastera.com</link>
	<description>Application Developer/Designer</description>
	<lastBuildDate>Sun, 29 Aug 2010 00:02:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Drupal &#8211; How to install Drush</title>
		<link>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/</link>
		<comments>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 00:02:30 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1293</guid>
		<description><![CDATA[What is Drush? It&#8217;s a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) &#8211; just type, drush dl views and drush pm-enable views in a Drupal directory to install the Views [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.richardcastera.com/wp-content/uploads/2010/08/drush_logo-black.png" alt="Drush Logo" title="Drush" width="218" height="215" align="left" style="margin: 0px 10px 0px 0px;" /></a><h4>What is <a href="http://drush.ws/" target="_blank">Drush</a>?</h4> It&#8217;s a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) &#8211; just type,
<div style="margin: 0px 0px 0px 230px;">
<pre class="brush: plain;">
drush dl views
</pre>
</div>
and
<div style="margin: 0px 0px 0px 230px;">
<pre class="brush: plain;">
drush pm-enable views
</pre>
</div>
in a Drupal directory to install the Views project! Additionally, the Drush Package Manager also allows you to update all your modules and even Drupal core with just one command,
<pre class="brush: plain;">
drush pm-update
</pre>
</p>
<span id="more-1293"></span>
<h4 style="margin: 20px 0px 0px 0px;">How to install Drush</h4>
<p>
<ol>
<li><a href="http://drupal.org/project/drush" target="_blank">Download the current version of the Drush Package from the Drupal website</a>.</li>
<li>Upload the folder to the root directory of your server. I did this on a shared environment.</li>
<li>Login to your server via shell.</li>
<li>Make the &#8216;drush&#8217; command executable: <pre class="brush: plain;">$ chmod u+x ~/drush/drush</pre></li>
<li>create an alias to drush: <pre class="brush: plain;">$ alias drush='~/drush/drush'</pre> Now, you must log out and then log back in again or re-load your bash configuration file to apply your changes to your current session: <pre class="brush: plain;">$ source .bashrc</pre></li>
<li>Start using drush by running &#8220;drush&#8221; from your Drupal root directory.</li>
</ol>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; Check if a User has a specific role</title>
		<link>http://www.richardcastera.com/2010/03/05/drupal-check-if-a-user-has-a-specific-role/</link>
		<comments>http://www.richardcastera.com/2010/03/05/drupal-check-if-a-user-has-a-specific-role/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 15:37:48 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1038</guid>
		<description><![CDATA[Here is a quick way to determine if a user has a specific role &#60;?php // Bring the user object into scope. global $user; // Check to see if $user has the administrator user role. if (in_array('administrator', array_values($user-&#62;roles))) { // Do something. } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Here is a quick way to determine if a user has a specific role</p>
<pre class="brush: php;">
&lt;?php
  // Bring the user object into scope.
  global $user;
  // Check to see if $user has the administrator user role.
  if (in_array('administrator', array_values($user-&gt;roles))) {
    // Do something.
  }
?&gt;
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/03/05/drupal-check-if-a-user-has-a-specific-role/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; Adding Javascript to your module</title>
		<link>http://www.richardcastera.com/2010/03/04/drupal-adding-javascript-to-your-module/</link>
		<comments>http://www.richardcastera.com/2010/03/04/drupal-adding-javascript-to-your-module/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 15:32:42 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1032</guid>
		<description><![CDATA[When creating your own Drupal module, you may need to add some styling or Javascript to improve the usability of your module. Here is how to do it. drupal_add_js(drupal_get_path('module', 'MODULE_NAME') . '/common.js'); Similarly you can add CSS to your module as well drupal_add_css(drupal_get_path('module', 'MODULE_NAME') . '/styles.css');]]></description>
			<content:encoded><![CDATA[<p>When creating your own <a href="http://drupal.org" title="Drupal CMS" target="_blank">Drupal</a> module, you may need to add some styling or Javascript to improve the usability of your module. Here is how to do it.</p>
<pre class="brush: php;">
drupal_add_js(drupal_get_path('module', 'MODULE_NAME') . '/common.js');
</pre>
<p>Similarly you can add CSS to your module as well</p>
<pre class="brush: php;">
drupal_add_css(drupal_get_path('module', 'MODULE_NAME') . '/styles.css');
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/03/04/drupal-adding-javascript-to-your-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; Use hook_form_alter() to set redirect path on the form</title>
		<link>http://www.richardcastera.com/2010/03/03/drupal-use-hook-form-alter-to-set-redirect-path-on-the-form/</link>
		<comments>http://www.richardcastera.com/2010/03/03/drupal-use-hook-form-alter-to-set-redirect-path-on-the-form/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 15:21:11 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=952</guid>
		<description><![CDATA[One popular use of this hook is to change the destination of a form submission. Here is how it is accomplished: &#60;?php function YOURMODULE_form_alter($form_id, &#38;$form) { switch ($form['#id']) { case 'node-form': if ($form['type']['#value'] == 'story') { $form['#redirect'] = 'new/url'; } break; } } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>One popular use of this hook is to change the destination of a form submission. Here is how it is accomplished:</p>
<pre class="brush: php;">
&lt;?php
function YOURMODULE_form_alter($form_id, &amp;$form) {
  switch ($form['#id']) {
    case 'node-form':
       if ($form['type']['#value'] == 'story') {
         $form['#redirect'] = 'new/url';
       }
     break;
  }
}
?&gt;
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/03/03/drupal-use-hook-form-alter-to-set-redirect-path-on-the-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; The Best and my Favorite Modules</title>
		<link>http://www.richardcastera.com/2009/08/10/drupal-the-best-and-my-favorite-modules/</link>
		<comments>http://www.richardcastera.com/2009/08/10/drupal-the-best-and-my-favorite-modules/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:15:57 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=728</guid>
		<description><![CDATA[I&#8217;ve worked with Drupal in the past for several projects and have come across some modules that have become my favorites. Here they are: Tiny MCE This module was the first to integrate Moxiecode&#8217;s popular TinyMCE WYSIWYG editor into a Drupal site for editing advance site content. Simple News Simplenews publishes and sends newsletters to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.richardcastera.com/wp-content/uploads/2010/03/drupal-logo.gif"><img src="http://www.richardcastera.com/wp-content/uploads/2010/03/drupal-logo.gif" alt="Drupal" title="drupal-logo" width="200" height="200" class="alignnone size-full wp-image-1058" align="left" style="margin: 0px 10px 10px 0px;" /></a>I&#8217;ve worked with <a href="http://drupal.org" target="_blank">Drupal</a> in the past for several projects and have come across some modules that have become my favorites. Here they are:</p>
<ul>
<li><a href="http://drupal.org/project/tinymce" target="_blank">Tiny MCE</a>
<p>This module was the first to integrate Moxiecode&#8217;s popular <a href="http://tinymce.moxiecode.com/" title="Tiny MCE" target="_blank">TinyMCE WYSIWYG</a> editor into a Drupal site for editing advance site content.</p>
</li>
<li><a href="http://drupal.org/project/simplenews" target="_blank">Simple News</a>
<p>Simplenews publishes and sends newsletters to lists of subscribers. Both anonymous and authenticated users can opt-in to different mailing lists. HTML email can be send by adding <a href="http://drupal.org/project/mimemail" target="_blank" title="Drupal Mime Mail Module">Mime Mail module.</a></p>
</li>
<li><a href="http://drupal.org/project/views" target="_blank">Views</a>
<p>The Views module provides a flexible method for Drupal site designers to control how lists and tables of content (nodes in Views 1, almost anything in Views 2) are presented. Traditionally, Drupal has hard-coded most of this, particularly in how taxonomy and tracker lists are formatted.</p>
</li>
<li><a href="http://drupal.org/project/panels" target="_blank">Panels</a>
<p>The Panels module allows a site administrator to create customized layouts for multiple uses. At its core it is a drag and drop content manager that lets you visually design a layout and place content within that layout.</p>
</li>
<li><a href="http://drupal.org/project/cck" target="_blank">Content Construction Kit (CCK)</a>
<p>The Content Construction Kit allows you to add custom fields to nodes using a web browser.</p>
</li>
<li><a href="http://drupal.org/project/pathauto" target="_blank">Path Auto</a>
<p>The Pathauto module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias. This allows you to get aliases like /category/my-node-title.html instead of /node/123.</p>
</li>
<li><a href="http://drupal.org/project/fivestar" target="_blank">Five Star</a>
<p>The Five Star voting module adds a clean, attractive voting widget to nodes in Drupal</p>
</li>
<li><a href="http://drupal.org/project/poormanscron" target="_blank">Poor Mans Cron</a>
<p>A module which runs the Drupal cron operations without needing the cron application.</p>
</li>
<li><a href="http://drupal.org/project/nodewords" target="_blank">Node Words</a>
<p>This module allows you to set some meta tags for each node, view or panels page.</p>
</li>
<li><a href="http://drupal.org/project/globalredirect" target="_blank">Global Redirect</a>
<p>Checks the current URL for an alias and does a 301 redirect to it if it is not being used.</p>
</li>
<li><a href="http://drupal.org/project/page_title" target="_blank">Page Title</a>
<p>This module gives you granular control over the page title. You can specify patterns for how the title should be structured and, on content creation pages, specify the page title separately to the content&#8217;s title.</p>
</li>
<li><a href="http://drupal.org/project/xmlsitemap" target="_blank">XML Sitemap</a>
<p>The XML sitemap module creates a sitemap that conforms to the sitemaps.org specification. The sitemap created by the module can be automatically submitted to Ask, Google, Bing (formerly Windows Live Search), and Yahoo! search engines.</p>
</li>
<li><a href="http://drupal.org/project/print" target="_blank">Print</a>
<p>This module allows you to generate page, email and PDFprinter-friendly versions of any node.</p>
</li>
<li><a href="http://drupal.org/project/username_check" target="_blank">Username Check</a>
<p>This very simple module allows visitors to check username originality quickly using AJAX request during registration (completing registration form).</p>
</li>
<li><a href="http://drupal.org/project/nodehierarchy" target="_blank">Node Hierarchy</a>
<p>Node Hierarchy allows nodes to be children of other nodes creating a tree-like hierarchy of content.</p>
</li>
</li>
<li><a href="http://drupal.org/project/custom_breadcrumbs" target="_blank">Custom Breadcrumbs</a>
<p>Allows administrators to set up parametrized breadcrumb trails for any node type.</p>
</li>
<li><a href="http://drupal.org/project/nice_menus" target="_blank">Nice Menus</a>
<p>Nice Menus enables drop-down/right/left expandable menus.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/08/10/drupal-the-best-and-my-favorite-modules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.345 seconds -->
