<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Blocks</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 10:07:26 GMT</pubDate>
<item>
<title>(PHP) Drupal Auto Blocks - brownrl</title>
<link>http://snipplr.com/view/69905/drupal-auto-blocks/</link>
<description><![CDATA[ <p>This is a hook_block_info and hook_block_view template that will allow you to quickly create blocks in a Drupal module. When you use this all you have to do is create a directory "blocks" in the module and then create block.block_name.php in the directory. Inside the php you need to define a function block_block_name_content().</p> ]]></description>
<pubDate>Tue, 12 Feb 2013 20:33:39 GMT</pubDate>
<guid>http://snipplr.com/view/69905/drupal-auto-blocks/</guid>
</item>
<item>
<title>(Objective C) xcode Objective C - block examples - kutyadog</title>
<link>http://snipplr.com/view/67960/xcode-objective-c--block-examples/</link>
<description><![CDATA[ <p>Examples of how Objective-c objects work</p> ]]></description>
<pubDate>Fri, 26 Oct 2012 07:50:40 GMT</pubDate>
<guid>http://snipplr.com/view/67960/xcode-objective-c--block-examples/</guid>
</item>
<item>
<title>(Python) chdir context manager - ches</title>
<link>http://snipplr.com/view/56684/chdir-context-manager/</link>
<description><![CDATA[ <p>This context manager restores the value of the current working directory (cwd) after the enclosed code block completes or raises an exception.  If a directory name is supplied to the context manager then the cwd is changed prior to running the code block.</p> ]]></description>
<pubDate>Sat, 16 Jul 2011 18:28:17 GMT</pubDate>
<guid>http://snipplr.com/view/56684/chdir-context-manager/</guid>
</item>
<item>
<title>(PHP) Magento - cms/static blocks - alexmargineanu</title>
<link>http://snipplr.com/view/48780/magento--cmsstatic-blocks/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 10 Feb 2011 22:37:11 GMT</pubDate>
<guid>http://snipplr.com/view/48780/magento--cmsstatic-blocks/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Pixelate bitmapData - adrianparr</title>
<link>http://snipplr.com/view/47554/as3-pixelate-bitmapdata/</link>
<description><![CDATA[ <p>Credit for this goes to Terry Paton</p> ]]></description>
<pubDate>Thu, 20 Jan 2011 02:30:58 GMT</pubDate>
<guid>http://snipplr.com/view/47554/as3-pixelate-bitmapdata/</guid>
</item>
<item>
<title>(PHP) Drupal 6 - Stop views from giving block ids a hash name - Block Preprocess - Onfire60</title>
<link>http://snipplr.com/view/47462/drupal-6--stop-views-from-giving-block-ids-a-hash-name--block-preprocess/</link>
<description><![CDATA[ <p>This code goes directly into your template.php file after you remove the open and close PHP tags at the beginning and end.

Then place the call below in your block.tpl.php. Don't forget to flush cache.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 04:12:11 GMT</pubDate>
<guid>http://snipplr.com/view/47462/drupal-6--stop-views-from-giving-block-ids-a-hash-name--block-preprocess/</guid>
</item>
<item>
<title>(PHP) Drupal 6 - Better Block Ids Function - Onfire60</title>
<link>http://snipplr.com/view/47460/drupal-6--better-block-ids-function/</link>
<description><![CDATA[ <p>Copy the first code snippet to your theme's template.php.

Then call the following section in you block template file.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 03:26:38 GMT</pubDate>
<guid>http://snipplr.com/view/47460/drupal-6--better-block-ids-function/</guid>
</item>
<item>
<title>(PHP) Drupal display blocks in theme - hamsterbacke82</title>
<link>http://snipplr.com/view/45811/drupal-display-blocks-in-theme/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 16 Dec 2010 16:43:44 GMT</pubDate>
<guid>http://snipplr.com/view/45811/drupal-display-blocks-in-theme/</guid>
</item>
<item>
<title>(Other) Tumblr Blocks - george_gecewicz</title>
<link>http://snipplr.com/view/45634/tumblr-blocks/</link>
<description><![CDATA[ <p>All the post types for developing with the Tumblr platform.</p> ]]></description>
<pubDate>Sun, 12 Dec 2010 02:42:37 GMT</pubDate>
<guid>http://snipplr.com/view/45634/tumblr-blocks/</guid>
</item>
<item>
<title>(Objective C) Create Snapshot Images from Webpages in Cocoa - jimmcgowan</title>
<link>http://snipplr.com/view/40186/create-snapshot-images-from-webpages-in-cocoa/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Sep 2010 07:40:00 GMT</pubDate>
<guid>http://snipplr.com/view/40186/create-snapshot-images-from-webpages-in-cocoa/</guid>
</item>
<item>
<title>(PHP) Drupal - print block variable - marcelodornelas</title>
<link>http://snipplr.com/view/28030/drupal--print-block-variable/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 09 Feb 2010 07:19:01 GMT</pubDate>
<guid>http://snipplr.com/view/28030/drupal--print-block-variable/</guid>
</item>
<item>
<title>(PHP) Add "first" and "last" classes on blocks - Fake</title>
<link>http://snipplr.com/view/20284/add-first-and-last-classes-on-blocks/</link>
<description><![CDATA[ <p>Sometimes, the first or last block in a region needs to be styled different than the rest. This solution do this in simple way for Drupal 6.
(originaly code from Remi@drupal.org: http://drupal.org/node/293188#comment-1282186)</p> ]]></description>
<pubDate>Sat, 26 Sep 2009 07:27:29 GMT</pubDate>
<guid>http://snipplr.com/view/20284/add-first-and-last-classes-on-blocks/</guid>
</item>
<item>
<title>(XML) magento display static blocks with custom layout update - nico65</title>
<link>http://snipplr.com/view/19549/magento-display-static-blocks-with-custom-layout-update/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 11 Sep 2009 10:23:57 GMT</pubDate>
<guid>http://snipplr.com/view/19549/magento-display-static-blocks-with-custom-layout-update/</guid>
</item>
<item>
<title>(PHP) Limit Blocks in an Area - sinecera</title>
<link>http://snipplr.com/view/16595/limit-blocks-in-an-area/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 02 Jul 2009 14:32:25 GMT</pubDate>
<guid>http://snipplr.com/view/16595/limit-blocks-in-an-area/</guid>
</item>
<item>
<title>(PHP) Add Autonav Block - Concrete5 - sinecera</title>
<link>http://snipplr.com/view/15516/add-autonav-block--concrete5/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Jun 2009 11:10:16 GMT</pubDate>
<guid>http://snipplr.com/view/15516/add-autonav-block--concrete5/</guid>
</item>
<item>
<title>(Bash) Store Drupal blockconfiguration in SVN. - berkes</title>
<link>http://snipplr.com/view/14095/store-drupal-blockconfiguration-in-svn/</link>
<description><![CDATA[ <p>A common Drupal problem: how to save e.g. your blocks configuration without dragging an X Gig database around. 

A simple command that dumps a table in a way that it can be inserted into SVN. 
Every row is dumped as a single line, and they are sorted. Minimising the differences.

This example dumps the data for blocks.</p> ]]></description>
<pubDate>Thu, 16 Apr 2009 10:59:17 GMT</pubDate>
<guid>http://snipplr.com/view/14095/store-drupal-blockconfiguration-in-svn/</guid>
</item>
<item>
<title>(PHP) Show Block Depending on Content Type - lexx</title>
<link>http://snipplr.com/view/12259/show-block-depending-on-content-type/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 16 Feb 2009 18:05:31 GMT</pubDate>
<guid>http://snipplr.com/view/12259/show-block-depending-on-content-type/</guid>
</item>
<item>
<title>(Rails) Rails: Basic form_for Helper - chrisaiv</title>
<link>http://snipplr.com/view/9359/rails-basic-formfor-helper/</link>
<description><![CDATA[ <p>form_for is the most popular helper used when generating a form that binds to one type of object.  The parameter you pass through form_for ("|f|") is of datatype FormBuilder which offers these methods: text_field, password_field, check_box, and text_area</p> ]]></description>
<pubDate>Wed, 29 Oct 2008 20:00:58 GMT</pubDate>
<guid>http://snipplr.com/view/9359/rails-basic-formfor-helper/</guid>
</item>
<item>
<title>(PHP) Allow per-region template overrides. - berkes</title>
<link>http://snipplr.com/view/5042/allow-perregion-template-overrides/</link>
<description><![CDATA[ <p>A per-region override. 
ogt_blocks is ran for a region, if a region contains blocks, we search for a theme function named theme_region_regionname(). If exists, we run that, else we just return the concatenated blocks for that region.</p> ]]></description>
<pubDate>Wed, 13 Feb 2008 09:18:37 GMT</pubDate>
<guid>http://snipplr.com/view/5042/allow-perregion-template-overrides/</guid>
</item>
</channel>
</rss>