<?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>BytesiteDrupal</title>
	<atom:link href="http://www.bytesite.co.uk/tag/drupal/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bytesite.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 12 Mar 2010 09:26:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Changing Drupal Theme on the Fly</title>
		<link>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme</link>
		<comments>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:32:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=245</guid>
		<description><![CDATA[I encountered an issue within Drupal with regards to admin and frontend themes.  Specifically I needed to ensure that when a user creates or edits a particular type of content, it would remain in the frontend theme, and if they created or edited a different type, it would show in the admin theme.

A bit of background [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/drupal-changing-theme-on-theflydrupal-programmatically-changing-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 6 &#8211; Views, programmatically set arguments</title>
		<link>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments</link>
		<comments>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:33:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bytesite.co.uk/?p=238</guid>
		<description><![CDATA[It is sometimes useful to programmatically load a view in Drupal, to execute it and then utilise the results.  This is all straightforward and well documented.  A little less documented is how to set the view arguements.

As with a lot of things, once you know it is easy:

$view = views_get_view&#40;$view_name&#41;;
$view-&#62;set_arguments&#40;$args&#41;;
$view-&#62;execute&#40;&#41;;
return $view-&#62;result;

Where $args is an array, [...]]]></description>
		<wfw:commentRss>http://www.bytesite.co.uk/drupal-6-views2-programmatically-set-arguments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
