<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.pedroposada.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Pedro Posada&#039;s Blog</title>
 <link>http://www.pedroposada.com/category/blog/phpsnippet</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Set menu trail in primary links; Add active class to parent primary link</title>
 <link>http://www.pedroposada.com/blog/set-menu-trail-primary-links-add-active-class-parent-primary-link.html</link>
 <description>&lt;p&gt;Insert code snippet in template.php file.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/set-menu-trail-primary-links-add-active-class-parent-primary-link.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/set-menu-trail-primary-links-add-active-class-parent-primary-link.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/menu-system">menu system</category>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Wed, 03 Nov 2010 13:41:52 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">487 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Sample output for menu_get_active_trail() in drupal</title>
 <link>http://www.pedroposada.com/blog/sample-output-menu_get_active_trail-drupal.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/sample-output-menu_get_active_trail-drupal.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/sample-output-menu_get_active_trail-drupal.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Wed, 03 Nov 2010 12:57:55 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">486 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Creating a node programmatically</title>
 <link>http://www.pedroposada.com/blog/creating-node-programmatically.html</link>
 <description>&lt;p&gt;Creating a node programmatically.&lt;/p&gt;
&lt;p&gt;The best code snippet I found about this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org/node/178506#comment-1590834&quot; title=&quot;http://drupal.org/node/178506#comment-1590834&quot;&gt;http://drupal.org/node/178506#comment-1590834&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some people say is better to use &lt;a href=&quot;http://api.drupal.org/api/function/drupal_execute/6&quot;&gt;drupal_execute()&lt;/a&gt;, but on my experience I would recommend to use the snippet above.&lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/creating-node-programmatically.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Mon, 29 Jun 2009 12:20:03 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">380 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Regular Expression snippet preg_match_all</title>
 <link>http://www.pedroposada.com/blog/regular-expression-snippet-preg_match_all.html</link>
 <description>&lt;p&gt;I was trying to extract the text of an html tag using regular expressions. It seems that preg_match_all is a good option to do this. I wanted to extract the taxonomy term name from within a views display template. I needed to embed a views inside another views. I needed to use part of the parent view&#039;s html as an argument for the nested view. I used preg_match_all to extract the term name from an html tag.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/regular-expression-snippet-preg_match_all.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/regular-expression-snippet-preg_match_all.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <category domain="http://www.pedroposada.com/category/blog/regular-expressions">regular expressions</category>
 <pubDate>Sun, 12 Apr 2009 21:18:40 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">61 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Create list of links to taxonomy terms</title>
 <link>http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html</link>
 <description>&lt;p&gt;This piece of code is to generate a menu or list of links to taxonomy pages. I used it inside a block. I created a view that shows all items under certain taxonomy term.&lt;/p&gt;
&lt;p&gt;It is basically a taxonomy menu but you can customized an place it anywhere.&lt;/p&gt;
&lt;p&gt;Good link to learn more about embedding your own views: &lt;a href=&quot;http://groups.drupal.org/node/10129&quot; title=&quot;http://groups.drupal.org/node/10129&quot;&gt;http://groups.drupal.org/node/10129&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/drupal-recipe">drupal recipe</category>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Sat, 07 Mar 2009 19:43:40 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">54 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Bulk delete nodes</title>
 <link>http://www.pedroposada.com/blog/bulk-delete-nodes.html</link>
 <description>&lt;p&gt;Insert snippet into a node&#039;s body. Select the php input format and submit the node.&lt;/p&gt;
&lt;p&gt;I found it here:  &lt;a href=&quot;http://www.computerminds.co.uk/bulk-deleting-drupal-nodes-particular-content-type&quot; title=&quot;http://www.computerminds.co.uk/bulk-deleting-drupal-nodes-particular-content-type&quot;&gt;http://www.computerminds.co.uk/bulk-deleting-drupal-nodes-particular-con...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/bulk-delete-nodes.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/bulk-delete-nodes.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Wed, 04 Mar 2009 13:41:40 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">53 at http://www.pedroposada.com</guid>
</item>
</channel>
</rss>

