<?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>Simon Rycroft's musings &#187; order</title>
	<atom:link href="http://blog.simon.rycroft.name/tag/order/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.simon.rycroft.name</link>
	<description>Too lazy to be a blog, but a little more than the average web page.</description>
	<lastBuildDate>Thu, 09 Oct 2008 11:43:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal module weight</title>
		<link>http://blog.simon.rycroft.name/2007/11/26/drupal-module-weight/</link>
		<comments>http://blog.simon.rycroft.name/2007/11/26/drupal-module-weight/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 11:53:01 +0000</pubDate>
		<dc:creator>Simon Rycroft</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[execution order]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[order]]></category>

		<guid isPermaLink="false">http://blog.simon.rycroft.name/2007/11/26/drupal-module-weight/</guid>
		<description><![CDATA[I just had to write a quick post having scratched my head over this one for a little too long.
Basically, within Drupal I&#8217;d wanted to change the order that the hook_form_alter hooks were executed.  In order to do this all you need to do is to set the &#8220;weight&#8221; of the module in question [...]]]></description>
			<content:encoded><![CDATA[<p>I just had to write a quick post having scratched my head over this one for a little too long.</p>
<p>Basically, within Drupal I&#8217;d wanted to change the order that the hook_form_alter hooks were executed.  In order to do this all you need to do is to set the &#8220;weight&#8221; of the module in question to a greater value.  In our example, I wanted my module to execute its code <strong>after</strong> the location module.  The location module has a weight of 0 (the default), so simply be setting mine to 1 its code was executed after the location module&#8217;s code.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simon.rycroft.name/2007/11/26/drupal-module-weight/feed/</wfw:commentRss>
		<slash:comments>-31</slash:comments>
		</item>
	</channel>
</rss>
